10000 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 · Issue #4101 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
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
Closed
@ghost

Description

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:

  • Python <3.2 are compiled with VS2008 (SDK v7.0,"sdk for win7 + NET 3.5.1")
  • Python 3.3 (+?) is compiled with VS2010 (SDK v7.1, "sdk for win7 + NET 4")
  • It's often recommended that c extensions (such as numpy) be compiled using the same compiler
    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.
  • VS2010 (msvc10) behaves differently with regards to manifest files then VS2008 (msvc9) but the cpython distutils, which the numpy build process relies on,
    have not been altered to allow for this (as of python 3.3.3).
  • a cpython issue was filed in dec/2012, but has stalled.
  • The issue manifests as a "broken toolchain" exception when attempting to build
    numpy (both 1.7.1 and 1.8.0), which results from the following compiler error message.
Found executable C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\mt.exe

_configtest.exe.manifest : general error c1010070: Failed to load and
parse the manifest. The system cannot find the file specified.

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:

mfinfo = self.manifest_get_embed_info(target_desc, ld_args)

to

mfinfo = None

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0