Directions for Mac Installation

  1. Download the following installation script: 307setup.sh. Just clicking on that link will download the file to your ~/Downloads on your Mac.
  2. Using the Finder, open up the Utilities folder and launch the terminal application
  3. In the terminal shell, do the following command:
          source ~/Downloads/307setup.sh
        
  4. 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
  5. 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
        
  6. 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

  1. This work is licensed under a Creative Commons License
  2. Creative Commons License
  3. Viewable With Any
Browser
  4. Valid HTML 4.01!
  5. Valid CSS!