I am using cython to generate faster code for a mathematical model.
I am having a hard time compiling the code, but somehow I managed to do so using a .bat:
setlocal EnableDelayedExpansion
CALL "C:Program FilesMicrosoft SDKsWindowsv7.0BinSetEnv.cmd" /x64 /release
set DISTUTILS_USE_SDK=1
C:Python27python.exe C:gcsilverunkmyprojectmyprojectcythonsetup.py build_ext --inplace
PAUSE
It runs ok...
My question is regarding pyximport. I have old code written by someone else that uses pyximport.install(). I couldn't figure out what it does and why I should use it, since I am already compiling the code by myself. So, can someone explain to me in a very simple (for dummies) way what pyximport does?
Additional information:
I have a project1, using cython.
I have a project2, that references project1.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…