| Store | Cart

Re: [Python-Dev] Microsoft Visual C++ Compiler for Python 2.7

From: Paul Moore <p.f....@gmail.com>
Sun, 28 Sep 2014 15:45:01 +0100
On 26 September 2014 19:01, Steve Dower <Stev...@microsoft.com> wrote:
> You can install the package without requiring administrative privileges and, with the latest version of setuptools (when it releases), use tools such as pip, wheel, or a setup.py file to produce binaries on Windows.

From the setuptools changelog, it seems that setuptools 6.0+ should
cover this. However, I just got the following error:

>.\ve-2.7\Scripts\pip.exe wheel blist
Downloading/unpacking blist
  Running setup.py
(path:C:\Work\Projects\buildwheel\ve-2.7\build\blist\setup.py)
egg_info for package blist

    warning: no files found matching 'blist.rst'
Building wheels for collected packages: blist
  Running setup.py bdist_wheel for blist
  Destination directory: c:\work\projects\buildwheel\wheelhouse
  Complete output from command
C:\Work\Projects\buildwheel\ve-2.7\Scripts\python.exe -c "import
setuptools;__file__='C:\\Work\\Projects\\buildwheel\\ve-2.7\\build\\blist\\setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" bdist_wheel -d
c:\work\projects\buildwheel\wheelhouse:
  running bdist_wheel

running build

running build_py

creating build

creating build\lib.win-amd64-2.7

creating build\lib.win-amd64-2.7\blist

copying blist\_btuple.py -> build\lib.win-amd64-2.7\blist

copying blist\_sorteddict.py -> build\lib.win-amd64-2.7\blist

copying blist\_sortedlist.py -> build\lib.win-amd64-2.7\blist

copying blist\__init__.py -> build\lib.win-amd64-2.7\blist

running build_ext

building 'blist._blist' extension

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "C:\Work\Projects\buildwheel\ve-2.7\build\blist\setup.py", line
52, in <module>

    long_description=open('README.rst').read()

  File "C:\Apps\Python27\Lib\distutils\core.py", line 152, in setup

    dist.run_commands()

  File "C:\Apps\Python27\Lib\distutils\dist.py", line 953, in run_commands

    self.run_command(cmd)

  File "C:\Apps\Python27\Lib\distutils\dist.py", line 972, in run_command

    cmd_obj.run()

  File "C:\Work\Projects\buildwheel\ve-2.7\lib\site-packages\wheel\bdist_wheel.py",
line 175, in run

    self.run_command('build')

  File "C:\Apps\Python27\Lib\distutils\cmd.py", line 326, in run_command

    self.distribution.run_command(command)

  File "C:\Apps\Python27\Lib\distutils\dist.py", line 972, in run_command

    cmd_obj.run()

  File "C:\Apps\Python27\Lib\distutils\command\build.py", line 127, in run

    self.run_command(cmd_name)

  File "C:\Apps\Python27\Lib\distutils\cmd.py", line 326, in run_command

    self.distribution.run_command(command)

  File "C:\Apps\Python27\Lib\distutils\dist.py", line 972, in run_command

    cmd_obj.run()

  File "C:\Work\Projects\buildwheel\ve-2.7\lib\site-packages\setuptools\command\build_ext.py",
line 54, in run

    _build_ext.run(self)

  File "C:\Apps\Python27\Lib\distutils\command\build_ext.py", line 337, in run

    self.build_extensions()

  File "C:\Apps\Python27\Lib\distutils\command\build_ext.py", line
446, in build_extensions

    self.build_extension(ext)

  File "C:\Work\Projects\buildwheel\ve-2.7\lib\site-packages\setuptools\command\build_ext.py",
line 187, in build_extension

    _build_ext.build_extension(self, ext)

  File "C:\Apps\Python27\Lib\distutils\command\build_ext.py", line
496, in build_extension

    depends=ext.depends)

  File "C:\Apps\Python27\Lib\distutils\msvc9compiler.py", line 473, in compile

    self.initialize()

  File "C:\Apps\Python27\Lib\distutils\msvc9compiler.py", line 383, in
initialize

    vc_env = query_vcvarsall(VERSION, plat_spec)

  File "C:\Work\Projects\buildwheel\ve-2.7\lib\site-packages\setuptools\msvc9_support.py",
line 52, in query_vcvarsall

    return unpatched['query_vcvarsall'](version, *args, **kwargs)

  File "C:\Apps\Python27\Lib\distutils\msvc9compiler.py", line 299, in
query_vcvarsall

    raise ValueError(str(list(result.keys())))

ValueError: [u'path', u'include', u'lib']

----------------------------------------
  Failed building wheel for blist
Failed to build blist
Cleaning up...


PS 15:36 [00:02] C:\Work\Projects\buildwheel
>.\ve-2.7\Scripts\pip.exe list
pip (1.5.6)
setuptools (6.0.1)
wheel (0.24.0)

This looks suspiciously like http://bugs.python.org/issue7511, which
is worrying. Is this not something I should have expected setuptools
to have patched?

Paul
_______________________________________________
Python-Dev mailing list
Pyth...@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
Steve Dower Sep 26, 2014 06:01 pm
Donald Stufft Sep 26, 2014 06:07 pm
Tim Golden Sep 26, 2014 06:29 pm
Ryan Gonzalez Sep 26, 2014 07:01 pm
Larry Hastings Sep 26, 2014 07:18 pm
Paul Moore Sep 26, 2014 07:29 pm
Antoine Pitrou Sep 27, 2014 12:12 pm
Nick Coghlan Sep 27, 2014 01:01 pm
Paul Moore Sep 27, 2014 01:10 pm
Antoine Pitrou Sep 27, 2014 03:31 pm
Steve Dower Sep 27, 2014 03:38 pm
Christian Heimes Sep 27, 2014 02:18 pm
Sturla Molden Sep 27, 2014 03:59 pm
Sturla Molden Sep 27, 2014 04:28 pm
Paul Moore Sep 28, 2014 02:45 pm
Steve Dower Sep 29, 2014 04:05 pm
Eko Wibowo Sep 29, 2014 12:22 am
Giampaolo Rodola Sep 29, 2014 07:12 pm
Messages in this thread