Giter VIP home page Giter VIP logo

Comments (6)

matthew-brett avatar matthew-brett commented on June 24, 2024 2

Ah - maybe you need this incantation?

  # Fix MSVC builds for 64-bit Python. See:
  # http://stackoverflow.com/questions/32091593/cannot-install-windows-sdk-7-1-on-windows-10
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64/vcvars64.bat"

E.g. : https://github.com/MacPython/nipy-wheels/blob/master/appveyor.yml#L39

from multibuild.

native-api avatar native-api commented on June 24, 2024

You forgot to include the error itself:

ValueError: ['path']

from multibuild.

native-api avatar native-api commented on June 24, 2024

Regardless of the error, set DISTUTILS_DEBUG=1 envvar to get more logging that would show what's happening (https://stackoverflow.com/questions/13722706/how-to-get-error-log-of-a-disutils-setup-in-python): a build log isn't worth looking at unless something goes wrong, after all.

from multibuild.

native-api avatar native-api commented on June 24, 2024

The error means that the output of <path_to_vcvarsall.bat> <arch> & set didn't contain the path envvar (case-insensitive). This is very strange indeed.

You need to get this output yourself to find out what is wrong with it. Calling distutils.msvc9compiler.find_vcvarsall(distutils.msvc9compiler.get_build_version()) should give you the <path_to_vcvarsall.bat> and distutils debug output -- the value of <arch>.

from multibuild.

peterjc avatar peterjc commented on June 24, 2024

Test using SET DISTUTILS_DEBUG=1 before building the wheel:

https://ci.appveyor.com/project/biopython/biopython-wheels/build/1.0.55

Again this target failed:

https://ci.appveyor.com/project/biopython/biopython-wheels/build/1.0.55/job/qrkc6ua4k63jlptk

Not sure this tells me anything helpful:

SET DISTUTILS_DEBUG=1
python setup.py bdist_wheel
options (after parsing config files):
options (after parsing command line):
option dict for 'aliases' command:
  {}
option dict for 'bdist_wheel' command:
  {}
running bdist_wheel
Distribution.get_command_obj(): creating 'bdist_wheel' command object
Distribution.get_command_obj(): creating 'bdist' command object
Distribution.get_command_obj(): creating 'build' command object
Distribution.get_command_obj(): creating 'build_scripts' command object
running build
running build_py
Distribution.get_command_obj(): creating 'build_py' command object
creating build
creating build\lib.win-amd64-3.4
creating build\lib.win-amd64-3.4\Bio
copying Bio\bgzf.py -> build\lib.win-amd64-3.4\Bio
...
copying Bio\Entrez\DTDs\mathml2-qname-1.mod -> build\lib.win-amd64-3.4\Bio\Entrez\DTDs
running build_ext
Distribution.get_command_obj(): creating 'build_ext' command object
building 'Bio.cpairwise2' extension
Traceback (most recent call last):
  File "setup.py", line 478, in <module>
    install_requires=REQUIRES,
  File "C:\Miniconda34-x64\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Miniconda34-x64\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Miniconda34-x64\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Miniconda34-x64\lib\site-packages\wheel\bdist_wheel.py", line 179, in run
    self.run_command('build')
  File "C:\Miniconda34-x64\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Miniconda34-x64\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Miniconda34-x64\lib\distutils\command\build.py", line 126, in run
    self.run_command(cmd_name)
  File "C:\Miniconda34-x64\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Miniconda34-x64\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "setup.py", line 206, in run
    build_ext.run(self)
  File "C:\Miniconda34-x64\lib\site-packages\setuptools\command\build_ext.py", line 50, in run
    _build_ext.run(self)
  File "C:\Miniconda34-x64\lib\distutils\command\build_ext.py", line 339, in run
    self.build_extensions()
  File "C:\Miniconda34-x64\lib\distutils\command\build_ext.py", line 448, in build_extensions
    self.build_extension(ext)
  File "C:\Miniconda34-x64\lib\site-packages\setuptools\command\build_ext.py", line 183, in build_extension
    _build_ext.build_extension(self, ext)
  File "C:\Miniconda34-x64\lib\distutils\command\build_ext.py", line 503, in build_extension
    depends=ext.depends)
  File "C:\Miniconda34-x64\lib\distutils\msvc9compiler.py", line 460, in compile
    self.initialize()
  File "C:\Miniconda34-x64\lib\distutils\msvc9compiler.py", line 371, in initialize
    vc_env = query_vcvarsall(VERSION, plat_spec)
  File "C:\Miniconda34-x64\lib\site-packages\setuptools\msvc9_support.py", line 52, in query_vcvarsall
    return unpatched['query_vcvarsall'](version, *args, **kwargs)
  File "C:\Miniconda34-x64\lib\distutils\msvc9compiler.py", line 287, in query_vcvarsall
    raise ValueError(str(list(result.keys())))
ValueError: ['path']
Command exited with code 1

I'll try Matthew's suggestion next...

from multibuild.

peterjc avatar peterjc commented on June 24, 2024

That seems to be what I was missing, well spotted @matthew-brett - thank you!

https://ci.appveyor.com/project/biopython/biopython-wheels/build/1.0.56

Also I note that this seems not to cause any problems with 32bit targets, so does not need wrapping in an if-statement.

from multibuild.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.