'easy_install -U cython' не жалуется на vcvarsall.bat и -mno-cygwin

Под Windows кажется, что easy_install с зависимостью C не очень проста.

Попытка 1 - vcvarsall.bat ошибки

Я устанавливаю cython под Windows7 с MinGw ; Я модифицировал Windows7 PATH , включив в него C: \ MinGw \ bin . На этом этапе я попытался easy_install -U cython и получил ...

C:\Users\mike_pennington\Desktop\TestDrive>easy_install -U cython
Searching for cython
Reading http://pypi.python.org/simple/cython/
Reading http://www.cython.org
Reading http://cython.org
Best match: Cython 0.15.1
Downloading http://cython.org/release/Cython-0.15.1.zip
Processing Cython-0.15.1.zip
Running Cython-0.15.1\setup.py -q bdist_egg --dist-dir c:\users\mike_p~1\appdata
\local\temp\easy_install-qr1tet\Cython-0.15.1\egg-dist-tmp-556kzq
Compiling module Cython.Plex.Scanners ...
Compiling module Cython.Compiler.Scanning ...
Compiling module Cython.Compiler.Parsing ...
Compiling module Cython.Compiler.Visitor ...
Compiling module Cython.Compiler.Code ...
Compiling module Cython.Runtime.refnanny ...
warning: no files found matching 'bugs.txt' under directory 'tests'
error: Setup script exited with error: Unable to find vcvarsall.bat

C:\Users\mike_pennington\Desktop\TestDrive>

Попытка 2 - Исправить ошибки vcvarsall.bat

Затем, следуя совету блог, который я нашел, я также попытался поместить это в C: \ Python27 \ Lib \ distutils \ distutils.cfg , чтобы исправить ошибку vcvarsall.bat .

[build]
compiler=mingw32

Это помогает лишь незначительно ...

C:\Python27\Lib\DISTUT~1>easy_install -U cython
Searching for cython
Reading http://pypi.python.org/simple/cython/
Reading http://www.cython.org
Reading http://cython.org
Best match: Cython 0.15.1
Downloading http://cython.org/release/Cython-0.15.1.zip
Processing Cython-0.15.1.zip
Running Cython-0.15.1\setup.py -q bdist_egg --dist-dir c:\users\mike_p~1\appdata
\local\temp\easy_install-kfif_o\Cython-0.15.1\egg-dist-tmp-o1tbkp
Compiling module Cython.Plex.Scanners ...
Compiling module Cython.Compiler.Scanning ...
Compiling module Cython.Compiler.Parsing ...
Compiling module Cython.Compiler.Visitor ...
Compiling module Cython.Compiler.Code ...
Compiling module Cython.Runtime.refnanny ...
warning: no files found matching 'bugs.txt' under directory 'tests'
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: Setup script exited with error: command 'gcc' failed with exit status 1

C:\Python27\Lib\DISTUT~1>

Предостережение - нет cygwin или предварительно скомпилированных двоичных файлов

Я понимаю, что могу заставить это работать под cygwin ; однако мне не нужны зависимости cygwin от этой библиотеки; Мне нужен собственный вывод Windows7.

Если возможно, я бы хотел избежать предварительно скомпилированных двоичных файлов Cython , потому что, как говорит автор, они «не поддерживаются и предназначены только для тестирования».

Вопрос

Как мне получить cython для установки через easy_install под Windows7 с MinGw ?

11
задан Mike Pennington 16 December 2011 в 11:49
поделиться