diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2015-10-10 01:15:12 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2015-10-10 01:15:12 +0200 |
commit | a3df126f1e9f39e91d684e5eaad26a844566ea12 (patch) | |
tree | 3242fe135a44cebc8b2315317c07305e481a6e48 | |
parent | 0243bce23383ff5e894b99e40df2f8fd806ad79f (diff) | |
download | numpy-a3df126f1e9f39e91d684e5eaad26a844566ea12.tar.gz |
BLD: import setuptools to allow compile with VS2008 python2.7 sdk
Needed to build numpy with Microsoft Visual C++ Compiler for Python 2.7
Otherwise one gets an Unable to find vcvarsall.bat error
SET DISTUTILS_USE_SDK=1
SET MSSdk=1
triggers the same from distutils.
-rwxr-xr-x | setup.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -238,8 +238,12 @@ def setup_package(): FULLVERSION, GIT_REVISION = get_version_info() metadata['version'] = FULLVERSION else: - if len(sys.argv) >= 2 and sys.argv[1] == 'bdist_wheel': - # bdist_wheel needs setuptools + if (len(sys.argv) >= 2 and sys.argv[1] == 'bdist_wheel' or + sys.version_info[0] < 3 and sys.platform == "win32"): + # bdist_wheel and the MS python2.7 VS sdk needs setuptools + # the latter can also be triggered by (see python issue23246) + # SET DISTUTILS_USE_SDK=1 + # SET MSSdk=1 import setuptools from numpy.distutils.core import setup cwd = os.path.abspath(os.path.dirname(__file__)) |