avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r1635004 - in /avro/trunk/lang/py: build.xml lib/
Date Tue, 28 Oct 2014 23:12:16 GMT
Author: cutting
Date: Tue Oct 28 23:12:15 2014
New Revision: 1635004

URL: http://svn.apache.org/r1635004
Log:
AVRO-570. Fix python build to download ivy on demand.

Modified:
    avro/trunk/lang/py/build.xml
    avro/trunk/lang/py/lib/   (props changed)

Modified: avro/trunk/lang/py/build.xml
URL: http://svn.apache.org/viewvc/avro/trunk/lang/py/build.xml?rev=1635004&r1=1635003&r2=1635004&view=diff
==============================================================================
--- avro/trunk/lang/py/build.xml (original)
+++ avro/trunk/lang/py/build.xml Tue Oct 28 23:12:15 2014
@@ -36,6 +36,9 @@
   <property name="lib.dir" value="${basedir}/lib"/>
   <property name="test.dir" value="${basedir}/test"/>
 
+  <property name="ivy.version" value="2.2.0"/>
+  <property name="ivy.jar" value="${basedir}/lib/ivy-${ivy.version}.jar"/>
+
   <!-- Load shared properties -->
   <loadfile srcFile="${share.dir}/VERSION.txt" property="avro.version" />
   <loadfile srcFile="${share.schema.dir}/org/apache/avro/ipc/HandshakeRequest.avsc" property="handshake.request.json"/>
@@ -55,6 +58,17 @@
 
   <target name="init" description="Create the build directory.">
     <mkdir dir="${build.dir}"/>
+    <available file="${ivy.jar}" property="ivy.jar.found"/>
+    <antcall target="ivy-download"/>
+    <typedef uri="antlib:org.apache.ivy.ant">
+      <classpath>
+        <pathelement location="${ivy.jar}" />
+      </classpath>
+    </typedef>
+  </target>
+  
+  <target name="ivy-download" unless="ivy.jar.found" >
+    <get src="http://repo2.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar"
dest="${ivy.jar}" usetimestamp="true" />
   </target>
 
   <target name="build"

Propchange: avro/trunk/lang/py/lib/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Oct 28 23:12:15 2014
@@ -1 +1,2 @@
 *.pyc
+ivy*.jar



Mime
View raw message