failonerror for some marvin targets

This commit is contained in:
Prasanna Santhanam 2012-07-31 12:17:33 +05:30
parent 9acd1ccaa3
commit 7288eca129
2 changed files with 4 additions and 3 deletions

View File

@ -40,7 +40,7 @@
<target name="build-marvin" depends="build-apidocs" description="generates the cloudstackAPIs for marvin">
<echo message="Generating Marvin API Classes"/>
<exec dir="${marvin.src.dir}" executable="python">
<exec dir="${marvin.src.dir}" executable="python" failonerror="true">
<arg value="codegenerator.py" />
<arg value="-s" />
<arg value="${dist.dir}/commands.xml" />
@ -50,7 +50,7 @@
<target name="package-marvin" depends="build-marvin" description="create a distributable tarball of Marvin">
<echo message="Packaging Marvin"/>
<exec dir="${marvin.dir}" executable="python">
<exec dir="${marvin.dir}" executable="python" failonerror="true">
<arg value="setup.py" />
<arg value="sdist" />
</exec>

View File

@ -18,10 +18,11 @@
from distutils.core import setup
from sys import version
import sys
if version < "2.7":
print "Marvin needs at least python 2.7, found : \n%s"%version
raise
sys.exit(1)
setup(name="Marvin",
version="0.1.0",