This section describes how to set up a GeoScript development environment.
Jython version 2.5.1 or greater is required for GeoScript.
Install Jython
For the remainder of the document the Jython installation root will be referred to as JYTHON_HOME.
Downlaod ez_setup.py
Execute ez_setup.py with the jython command:
$ <JYTHON_HOME>/bin/jython ez_setup.py
Upon success <JYTYON_HOME>/bin/easy_install will be created.
Note
Creating a virtualenv for GeoScript is not neccessary but is highly recomended.
Using easy_install installed in the previous section easy install the virtualenv library:
$ <JYTHON_HOME>/bin/easy_install virtualenv
Create a new virtualenv named geoscript:
$ <JYTHON_HOME>/bin/virtualenv geoscript
Activate the geoscript virtualenv:
$ source geoscript/bin/activate
The GeoScript sources are stored in a git repository hosted at github.
Install git
Clone the geoscript git repository:
(geoscript)$ git clone git://github.com/jdeolive/geoscript-py.git
GeoScript requires the GeoTools libraries to function. There are a number of ways to obtain them.
If `Apache Maven <>`_ is installed on the system execute the following command from the root of the local git repository:
$ mvn install
Upon success the required GeoTools libraries will be located in the jars directory.
If `Apache Ant <>`_ is installed on the system execute the ant comand from the root of the local git repository:
$ ant
Upon success the required GeoTools libraries will be located in the jars directory.
If neither of the above methods are appealing:
Once the GeoTools libraries are located in the jars directory source the classpath file located in the root the local git repository:
$ source classpath