In setup.py, move cython to setup_requires. (#878)

* In setup.py, move cython to setup_requires and move setuptools_scm to setup_requires.

* Add back pip install of cython when building mac wheels.

* Revert changes to setuptools_scm.

* Check that the correct number of Linux wheels are produced.

* Add back pip install cython when building linux wheels.
This commit is contained in:
Robert Nishihara
2017-08-28 23:07:33 -07:00
committed by Philipp Moritz
parent 60d4d01d06
commit 1afc487baf
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -54,6 +54,14 @@ if [[ "$platform" == "linux" ]]; then
# Run a simple test script to make sure that the wheel works.
$HOME/miniconda3/bin/python $TEST_SCRIPT
# Check that the other wheels are present.
NUMBER_OF_WHEELS=$(ls -1q $ROOT_DIR/../.whl/*.whl | wc -l)
if [[ "$NUMBER_OF_WHEELS" != "5" ]]; then
echo "Wrong number of wheels found."
ls -l $ROOT_DIR/../.whl/
exit 1
fi
elif [[ "$platform" == "macosx" ]]; then
MACPYTHON_PY_PREFIX=/Library/Frameworks/Python.framework/Versions
PY_MMS=("2.7"
+1 -1
View File
@@ -81,7 +81,6 @@ setup(name="ray",
# The BinaryDistribution argument triggers build_ext.
distclass=BinaryDistribution,
install_requires=["numpy",
"cython",
"funcsigs",
"click",
"colorama",
@@ -91,6 +90,7 @@ setup(name="ray",
# The six module is required by pyarrow.
"six >= 1.0.0",
"flatbuffers"],
setup_requires=["cython >= 0.23"],
entry_points={"console_scripts": ["ray=ray.scripts.scripts:main"]},
include_package_data=True,
zip_safe=False,