failonerror for some marvin targets

This commit is contained in:
Prasanna Santhanam 2012-07-31 12:17:33 +05:30 committed by Prasanna Santhanam
parent 386779ca2e
commit 81c3f62099
2 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,7 @@ file except in compliance with the License. Citrix Systems, Inc. -->
<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" />
@ -36,7 +36,7 @@ file except in compliance with the License. Citrix Systems, Inc. -->
<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

@ -5,10 +5,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",