Directions for Mac Installation
- Download the following installation
script: 307setup.sh. Just clicking on that
link will download the file to your
~/Downloads on your
Mac.
- Using the Finder, open up the Utilities folder and launch
the terminal application
- In the terminal shell, do the following command:
source ~/Downloads/307setup.sh
- If all goes well (it takes about 1-2 minutes), you'll have installed the PyOpenGL libraries and our TW stuff. Try the following:
python
>>> import OpenGL
>>> import TW
- Exit from python (Control-D does it) and try running some of the demos, just from
the shell:
python pytw/demos/redbook/cube.py
python pytw/demos/early/Barn.py
python pytw/demos/early/BarnTW.py
- When you're talking to a Python GLUT window, go to Python >
Preferences, and in the dialog box, enable multi-button mouse
emulation. That way you can use command-click to get the menu that is
usually attached to the right button.
Unfortunately, due to the refreshes of the Macs, we will probably have
to re-install every week.
If all we have to do is update TW and the demos (since I'm constantly
tweaking them), I have a script just for
that: reinstall-pytw.sh
-
This work is licensed under a Creative Commons
License
-