Skip to content

Commit c672cfc

Browse files
committed
Autodetect cython2 version
1 parent 51d961e commit c672cfc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

distribute.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ if [ "X$VIRTUALENV_NAME" == "X" ]; then
4242
VIRTUALENV_NAME="$(which virtualenv)"
4343
fi
4444

45+
# Resolve Cython path
46+
CYTHON="$(which cython2)"
47+
if [ "X$CYTHON" == "X" ]; then
48+
CYTHON="$(which cython)"
49+
fi
50+
4551
# Paths
4652
ROOT_PATH="$(dirname $($PYTHON -c 'from __future__ import print_function; import os,sys;print(os.path.realpath(sys.argv[1]))' $0))"
4753
RECIPES_PATH="$ROOT_PATH/recipes"
@@ -54,7 +60,7 @@ JNI_PATH="$SRC_PATH/jni"
5460
DIST_PATH="$ROOT_PATH/dist/default"
5561
SITEPACKAGES_PATH="$BUILD_PATH/python-install/lib/python2.7/site-packages/"
5662
HOSTPYTHON="$BUILD_PATH/python-install/bin/python.host"
57-
CYTHON="cython -t"
63+
CYTHON+=" -t"
5864

5965
# Tools
6066
export LIBLINK_PATH="$BUILD_PATH/objects"

0 commit comments

Comments
 (0)