mirror of https://github.com/apache/cloudstack.git
failonerror for some marvin targets
This commit is contained in:
parent
386779ca2e
commit
81c3f62099
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue