-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Compiling numpy 1.7.1/1.8.0 for python 3.3 on Windows with VS2010/SDK fails with "broken toolchain" due to missing manifest #4101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks, useful to have this summarized. http://mail.scipy.org/pipermail/numpy-discussion/2012-November/064524.html does mention that this works now with numpy master (at least under some circumstances). So do you think it's necessary to do anything else in numpy.distutils, or can we close this issue? |
It certainly didn't work for me very recently, perhaps it's mingw compilation that was fixed? I mostly just wanted the search engines to pick this up and since it's now the first |
It would still be possible to fix this bug in numpy.distutils then, but I don't think that's the right thing to do. So closing. EDIT (Feb 2014): I think I've changed my mind on this one). |
for reference I got numpy to build with vc10 with this patch and using
--- a/msvc9compiler.py
+++ b/msvc9compiler.py
@@ -623,6 +623,7 @@ class MSVCCompiler(CCompiler) :
temp_manifest = os.path.join(
build_temp,
os.path.basename(output_filename) + ".manifest")
+ ld_args.append('/MANIFEST')
ld_args.append('/MANIFESTFILE:' + temp_manifest)
if extra_preargs: found it in http://bugs.python.org/issue4431 |
changing VS90COMNTOOLS means you're using a different version of the compiler |
Compiling still broken by default as of python 3.4b3 |
See EDIT above. Since gh-4245 is a duplicate of this issue that is still open, so not reopening this one. |
@juliantaylor why did you need |
Note that there are a few similar patches posted to numpygh-4101 and numpygh-4245. Those were all patches to msvc9compiler in Python distutils. Monkeypatching ``MSVCCompiler.link`` is less easy than this change to ``config._check_compiler``; effect should be the same. (cherry picked from commit 2aa755eedf098b2357dcb6d11fa16719ada25ccc)
Note that there are a few similar patches posted to numpygh-4101 and numpygh-4245. Those were all patches to msvc9compiler in Python distutils. Monkeypatching ``MSVCCompiler.link`` is less easy than this change to ``config._check_compiler``; effect should be the same. Also updates the error message shown when initializing MSVC fails. [ci skip]
Note that there are a few similar patches posted to numpygh-4101 and numpygh-4245. Those were all patches to msvc9compiler in Python distutils. Monkeypatching ``MSVCCompiler.link`` is less easy than this change to ``config._check_compiler``; effect should be the same. Also updates the error message shown when initializing MSVC fails. [ci skip] (cherry picked from commit fa0ec11)
I ran into this, and the solution found on numpy-discussion worked for me, but does
turn up on a search of the issues.
Summary:
used to compile the python binaries, to ensure CRT compatability, so using VS2010/SDK 7.1 to compile
numpy for python 3.3 is implied.
have not been altered to allow for this (as of python 3.3.3).
numpy (both 1.7.1 and 1.8.0), which results from the following compiler error message.
The fix suggested by Christoph Gohlke on the ml is to edit the file "Lib/distutils/msvc9compiler.py:648", Located under your python 3.3 install directory, and modify the line from:
to
I've tried, and it has worked for me. Thanks goes to @cgohlke, the intrepid crusader for windows pydata binaries.
There, that should give pagerank something to chew on.
The text was updated successfully, but these errors were encountered: