You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2017/04/06 11:46:40 UTC
[50/50] tinkerpop git commit: TINKERPOP-1577 Added support for
building gremlin-python with python 2.x and 3.x
TINKERPOP-1577 Added support for building gremlin-python with python 2.x and 3.x
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/a007403b
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/a007403b
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/a007403b
Branch: refs/heads/TINKERPOP-1577
Commit: a007403bde681da9534acc01d13cdc060c5f7e44
Parents: 95d3efc
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Mar 2 07:01:47 2017 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Apr 6 07:45:33 2017 -0400
----------------------------------------------------------------------
gremlin-python/pom.xml | 58 +++++++++++++++++++++++++++++++++++++++------
1 file changed, 51 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/a007403b/gremlin-python/pom.xml
----------------------------------------------------------------------
diff --git a/gremlin-python/pom.xml b/gremlin-python/pom.xml
index 2b4a80e..4c36d2a 100644
--- a/gremlin-python/pom.xml
+++ b/gremlin-python/pom.xml
@@ -359,17 +359,28 @@
specifically). note that the commands to install wheel are largely for
safety in case someone is using an older version of virtualenv (which
doesn't install wheel by default) -->
- <copy todir="${project.build.directory}/python">
+ <copy todir="${project.build.directory}/python3">
+ <fileset dir="src/main/jython"/>
+ </copy>
+ <copy todir="${project.build.directory}/python2">
<fileset dir="src/main/jython"/>
</copy>
<copy todir="${project.build.directory}/python-packaged">
<fileset dir="src/main/jython"/>
</copy>
- <exec dir="${project.build.directory}/python" executable="virtualenv"
+ <exec dir="${project.build.directory}/python2" executable="virtualenv"
+ failonerror="true">
+ <arg line="--python=python env"/>
+ </exec>
+ <exec dir="${project.build.directory}/python2" executable="env/bin/pip"
+ failonerror="true">
+ <arg line="install wheel"/>
+ </exec>
+ <exec dir="${project.build.directory}/python3" executable="virtualenv"
failonerror="true">
<arg line="--python=python env"/>
</exec>
- <exec dir="${project.build.directory}/python" executable="env/bin/pip"
+ <exec dir="${project.build.directory}/python3" executable="env/bin/pip"
failonerror="true">
<arg line="install wheel"/>
</exec>
@@ -388,14 +399,30 @@
</configuration>
</execution>
<execution>
- <id>native-python-build</id>
+ <id>native-python2-build</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
- <exec executable="env/bin/python" dir="${project.build.directory}/python"
+ <exec executable="env/bin/python" dir="${project.build.directory}/python2"
+ failonerror="true">
+ <env key="PYTHONPATH" value=""/>
+ <arg line="setup.py build --build-lib ${project.build.outputDirectory}/Lib"/>
+ </exec>
+ </target>
+ </configuration>
+ </execution>
+ <execution>
+ <id>native-python3-build</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <target>
+ <exec executable="env/bin/python" dir="${project.build.directory}/python3"
failonerror="true">
<env key="PYTHONPATH" value=""/>
<arg line="setup.py build --build-lib ${project.build.outputDirectory}/Lib"/>
@@ -433,7 +460,24 @@
test phase doesn't have a pre/post event like integration-test does.
-->
<execution>
- <id>native-python-test</id>
+ <id>native-python2-test</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <skip>${skipTests}</skip>
+ <target>
+ <exec executable="env/bin/python" dir="${project.build.directory}/python2"
+ failonerror="true">
+ <env key="PYTHONPATH" value=""/>
+ <arg line="setup.py test"/>
+ </exec>
+ </target>
+ </configuration>
+ </execution>
+ <execution>
+ <id>native-python3-test</id>
<phase>integration-test</phase>
<goals>
<goal>run</goal>
@@ -441,7 +485,7 @@
<configuration>
<skip>${skipTests}</skip>
<target>
- <exec executable="env/bin/python" dir="${project.build.directory}/python"
+ <exec executable="env/bin/python" dir="${project.build.directory}/python3"
failonerror="true">
<env key="PYTHONPATH" value=""/>
<arg line="setup.py test"/>