Files
Tippy/build.xml
Julien Lengrand-Lambert 8f3a77ceb5 Prepares to packaging
Creates all necessary files. 
Instructions are taken from here : 
http://guide.python-distribute.org/creation.html

Some steps are still to be performed.

Reported-by: Julien Lengrand-Lambert
Signed-off-by: Julien Lengrand-Lambert <julien@lengrandlambert.fr>
2011-12-29 17:00:16 +01:00

49 lines
1.5 KiB
XML

<project name="Tippy" default="tests" basedir=".">
<taskdef resource="pyAntTasks.properties"/>
<property name="base.dir" value="."/>
<property name="src.dir" value="tippy"/>
<property name="ex.dir" value="examples"/>
<property name="tests.dir" value="tippy/tests"/>
<property name="doc.dir" value="doc"/>
<!--Clean Project -->
<target name="clean project">
<delete>
<fileset dir="${doc.dir}" includes="**/*"/>
</delete>
</target>
<!--Compiling sources -->
<target name="compile all">
<py-compile dir="${base.dir}" pythonpath="${src.dir}" optimize="0"/>
</target>
<target name="compile examples">
<py-compile dir="${base.dir}" pythonpath="${ex.dir}" optimize="0"/>
</target>
<target name="compile tests">
<py-compile dir="${base.dir}" pythonpath="${tests.dir}" optimize="0"/>
</target>
<!--Run all tests -->
<target name="tests">
<py-test pythonpath="${base.dir}" dir="${src.dir}">
<fileset dir="${src.dir}">
<include name="*/test_*"/>
</fileset>
</py-test>
</target>
<!--Run all examples -->
<target name="run examples">
<!--TODO -->
<py-run script="${ex.dir}/region_growing.py" pythonpath="${base.dir}" optimize="0">
</py-run>
</target>
<!-- Generate Documentation -->
<target name="pydoc generation">
<py-doc pythonpath="${base.dir}" destdir="${doc.dir}">
<fileset dir="${base.dir}">
<include name="**/*"/>
</fileset>
</py-doc>
</target>
<!-- Build Executable -->
<!--TODO -->
</project>