-
-
Notifications
You must be signed in to change notification settings - Fork 0
Using Cython on Windows XP
Paul Müller edited this page Jun 3, 2014
·
2 revisions
###Cython and Windows XP 32bit - Procedure
Install Cython and MinGW. Make sure the Windows Path variable contains the following directories:
C:\Python27\Scripts
C:\MinGW\bin
Tell Cython to use MinGW by creating (or editing) the file C:\Python27\Lib\distutils\distutils.cfg with the content:
[build]
compiler=mingw32
Depending on the version of MinGW, all occurences of -mno-cygwin have to be removed from the file
C:\Python27\Lib\distutils\cygwinccompiler.py
The numpy header files have to be included for cygwin. Copy
C:\Python27\Lib\site-packages\numpy-1.6.2-py2.7-win32.egg\numpy\core\include\numpy
to
C:\Python27\include\
This should enable you to compile the ~.pyx files by running the following code in PyScanFCS/
python setup.py build_ext --inplace
If that command failed due to a missing file SFCSNumeric.c
, it means that SFCSNumeric.pyx
was not processed by pyrex. Try to update your version of setuptools.