summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@googlemail.com>2014-05-11 09:04:04 +0200
committerRalf Gommers <ralf.gommers@googlemail.com>2014-05-11 09:04:04 +0200
commitcd0d0579614481076fef473f1fc0c4b13f991b28 (patch)
treee9508839094f8ca71bb3b45503d78144192dc489
parentf671012497dc32988590fe7cfec7a8e5a95c4d68 (diff)
parent0beb47f52b359ac90d81ec3f932f39a6f85bf8e8 (diff)
downloadnumpy-cd0d0579614481076fef473f1fc0c4b13f991b28.tar.gz
Merge pull request #4662 from matthew-brett/cythonize-for-wheels
BUG: cythonize sources for wheel build
-rw-r--r--.travis.yml2
-rwxr-xr-xsetup.py8
-rwxr-xr-xtools/travis-test.sh8
3 files changed, 12 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 944818428..deabf611e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,6 +22,8 @@ matrix:
env: NPY_RELAXED_STRIDES_CHECKING=1
- python: 2.7
env: USE_BENTO=1
+ - python: 2.7
+ env: USE_WHEEL=1
before_install:
- uname -a
- free -m
diff --git a/setup.py b/setup.py
index 6bb746955..12eb29093 100755
--- a/setup.py
+++ b/setup.py
@@ -228,12 +228,10 @@ def setup_package():
FULLVERSION, GIT_REVISION = get_version_info()
metadata['version'] = FULLVERSION
- elif len(sys.argv) >= 2 and sys.argv[1] == 'bdist_wheel':
- # bdist_wheel needs setuptools
- import setuptools
- from numpy.distutils.core import setup
- metadata['configuration'] = configuration
else:
+ if len(sys.argv) >= 2 and sys.argv[1] == 'bdist_wheel':
+ # bdist_wheel needs setuptools
+ import setuptools
from numpy.distutils.core import setup
cwd = os.path.abspath(os.path.dirname(__file__))
if not os.path.exists(os.path.join(cwd, 'PKG-INFO')):
diff --git a/tools/travis-test.sh b/tools/travis-test.sh
index 300961c6d..d970daab3 100755
--- a/tools/travis-test.sh
+++ b/tools/travis-test.sh
@@ -111,7 +111,13 @@ fi
export PYTHON
export PIP
-if [ "$USE_CHROOT" != "1" ] && [ "$USE_BENTO" != "1" ]; then
+if [ -n "$USE_WHEEL" ] && [ $# -eq 0 ]; then
+ $PIP install --upgrade pip
+ $PIP install wheel
+ $PYTHON setup.py bdist_wheel
+ $PIP install --pre --upgrade --find-links dist numpy
+ run_test
+elif [ "$USE_CHROOT" != "1" ] && [ "$USE_BENTO" != "1" ]; then
setup_base
run_test
elif [ -n "$USE_CHROOT" ] && [ $# -eq 0 ]; then