-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
52 lines (40 loc) · 1.45 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version='1.0'?>
<project name="python-geoiq" default="unit_tests">
<property name="venv" value="${basedir}/scratch/venv-geoiq"/>
<property name="python.exec" value="${venv}/bin/python"/>
<!-- Unit tests -->
<target name="unit_tests" depends='venv'>
<!-- TODO: http://pypi.python.org/pypi/XmlTestRunner/ or similar? -->
<py-run script="${basedir}/geoiq/tests/unit/suite.py"
python="${python.exec}"/>
</target>
<!-- python tasks for ant -->
<path id="python.tasks.classpath">
<pathelement location="${basedir}/bin/pyAntTasks-1.3.3.jar"/>
</path>
<taskdef
resource="pyAntTasks.properties"
classpathref="python.tasks.classpath"/>
<!-- Virtualenv setup: -->
<available file="${basedir}/scratch/venv-geoiq" property="have-venv"/>
<target name="venv" unless="have-venv">
<py-run script="${basedir}/bin/make-venv.py">
<arg value="--no-site-packages"/>
<arg value="${venv}"/>
</py-run>
<!-- have venv, now get the package to develop mode -->
<py-run script="${basedir}/setup.py"
python="${python.exec}">
<arg value="develop"/>
</py-run>
<!-- and, let's install shapely (for testing) & ipython (for dev): -->
<py-run script="${venv}/bin/easy_install"
python="${python.exec}">
<arg value="shapely"/>
</py-run>
<py-run script="${venv}/bin/easy_install"
python="${python.exec}">
<arg value="ipython"/>
</py-run>
</target>
</project>