Skip to content

Commit

Permalink
Autodetect cython2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
rdoursenaud committed Nov 6, 2014
1 parent 51d961e commit f48fabc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion distribute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ if [ "X$VIRTUALENV_NAME" == "X" ]; then
VIRTUALENV_NAME="$(which virtualenv)"
fi

# Resolve Cython path
CYTHON="$(which cython2)"
if [ "X$PYTHON" == "X" ]; then
CYTHON="$(which cython)"
fi

# Paths
ROOT_PATH="$(dirname $($PYTHON -c 'from __future__ import print_function; import os,sys;print(os.path.realpath(sys.argv[1]))' $0))"
RECIPES_PATH="$ROOT_PATH/recipes"
Expand All @@ -54,7 +60,7 @@ JNI_PATH="$SRC_PATH/jni"
DIST_PATH="$ROOT_PATH/dist/default"
SITEPACKAGES_PATH="$BUILD_PATH/python-install/lib/python2.7/site-packages/"
HOSTPYTHON="$BUILD_PATH/python-install/bin/python.host"
CYTHON="cython -t"
CYTHON+=" -t"

# Tools
export LIBLINK_PATH="$BUILD_PATH/objects"
Expand Down

0 comments on commit f48fabc

Please sign in to comment.