Re: problem compiling Python bindings under cygwin
Posted by Knox, Matt on
URL: http://quantlib.414.s1.nabble.com/problem-compiling-Python-bindings-under-cygwin-tp1057p1059.html
> Matt,
> the script is picking up the options for Visual C++. What happens if
> you open a Python interpreter from msys and execute the following?
>
> import sys
> print sys.platform
sys.platform returns 'win32'. In the setup.py script, is sys.platform really the appropriate thing to check though? Not sure how distutils does things internally, but presumably the behaviour is based on the specified compiler rather than the operating system? I'm not really familiar with writing python setup scripts though, I just use them once someone else has written it :)