Warning! This article discusses Eclipse 3.4 and has not been updated. These instructions are not valid for later versions of Eclipse. For more recent information about using Eclipse with Google Apps and App Engine, see Using the Google Plugin for Eclipse .
Joscha Feth
June 2008
This article was written and submitted by an external developer. The Google App Engine team thanks Joscha Feth for his time and expertise.
Introduction
As a fan of Eclipse and being new to Python development, I searched for an Eclipse Python extension and finally found PyDev sourceforge project . I know this is basic stuff, but it took me several minutes to find out how to get code completion working with Google App Engine.
So here is a small how-to for getting App Engine with Eclipse and PyDev up and running.
Downloading the components
Before you get started, you will need to set up your environment properly. To do this, you will need to download and configure the following components on your machine:
- Get Python and install it.
- Get Eclipse and unzip it.
- Get the Google App Engine SDK and install it.
Installing PyDev on Eclipse
Once you have the above components, you can set up the PyDev Eclipse extension, which is customized for Python developers.
- Open Eclipse and go to Help -> Software Updates -> Find and Install .
-
Locate and Install PyDev:
- Choose Search for new features to install and click on Next .
- Click on New remote site :
- Choose a name.
- Enter " http://pydev.org/updates/ " in the URL field.
- Click OK .
-
Select the
PyDev
update site you just added:
- Click on Finish
-
After the update site has been searched, choose to install the
PyDev for Eclipse
:
- Click on Next .
- Accept the agreement.
- Click on Finish .
- Click on Install All .
- Choose Yes to restart Eclipse.
- After Eclipse restarts:
- Choose Windows -> Preferences to bring up the preferences dialog.
- Change to the PyDev -> Interpreter - Python section to configure Python.
-
Click on
New
which is located just right of the "Python interpreters" field to add an interpreter:
- Search for the "python.exe" executable (normally in C:\Python25).
-
After you select the executable, PyDev will search for libraries, and the following screen appears:
- Normally, the pre-selection done by PyDev is fine, so click OK to accept the system pythonpath entries.
- In the Preferences window, click OK to confirm your changes.