I searched and didn't find, and had to figure stuff out... I hope to save you the trouble.

Thursday, April 23, 2009

Eclipse/PyDev on a Mac

  1. Download "eclipse classic" from http://www.eclipse.org/downloads
  2. Unpack the tarball, which will be an 'eclipse' folder
  3. Move the 'eclipse' folder to /opt (for the long-term, not just in your downloads folder)
  4. Make an alias from the Eclipse app into /Applications
  5. Run eclipse
  6. Go to Help > Software Updates > Available Software and click "Add Site..."
    enter: http://pydev.sourceforge.net/updates/
  7. Check the new site, including "PyDev for Eclipse" among its children
  8. Click the "Install..." button, and go through all the prompts including restarting eclipse
  9. Open Eclipse > Preferences > PyDev > Interpreter - Python
  10. Click the "New..." button
  11. Navigate in the finder open dialog to select /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5
    (tip: Use Cmd-Shift-G and paste in the directory, then select python2.5)
  12. Leave the default checked items for PYTHONPATH and click OK (you can edit it later if you need to)
When you go to create your PyDev project, don't get confused by the diabled "Next >" button... just click "Finish"

If you're doing an AppEngine app, you can add this to your PYTHONPATH:
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine

No comments:

Post a Comment

Followers