mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
failonerror for some marvin targets
This commit is contained in:
parent
9acd1ccaa3
commit
7288eca129
@ -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>
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user