Skip to content

Commit 99cbdba

Browse files
committed
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.
1 parent 61c699e commit 99cbdba

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

setup.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,10 @@ def setup_package():
228228

229229
FULLVERSION, GIT_REVISION = get_version_info()
230230
metadata['version'] = FULLVERSION
231-
elif len(sys.argv) >= 2 and sys.argv[1] == 'bdist_wheel':
232-
# bdist_wheel needs setuptools
233-
import setuptools
234-
from numpy.distutils.core import setup
235-
metadata['configuration'] = configuration
236231
else:
232+
if len(sys.argv) >= 2 and sys.argv[1] == 'bdist_wheel':
233+
# bdist_wheel needs setuptools
234+
import setuptools
237235
from numpy.distutils.core import setup
238236
cwd = os.path.abspath(os.path.dirname(__file__))
239237
if not os.path.exists(os.path.join(cwd, 'PKG-INFO')):

0 commit comments

Comments
 (0)