From 99cbdbacc23041392aac3f8cc60916d603ee9b1c Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Sat, 3 May 2014 14:04:11 -0700 Subject: BUG: cythonize sources for wheel build Wheel build was not cythonizing sources, giving a compile error because needed `numpy/random/mtrand/mtrand.c` was missing. --- setup.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'setup.py') 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')): -- cgit v1.2.1