I have a few cython modules which I would like to use both on linux
and windows. I develop mainly under linux, compiling with gcc. I
would like to build the windows modules (.pyd) directly under linux,
if possible. In fact, it would be best if I could just issue one
script that will build the executables for both platforms (adding in
the possiblity for osx will be a welcome addition as well). Is that
possible in any way?
thanks,
Yoav
I have no idea--you're probably better off asking on the distutils
list. Perhaps you could do something with wine (I'd imagine you'd need
Win32 headers and libraries to link against at least)?
- Robert
I've just built some cython windows binary distributions on OSX using wine:
http://matthew-brett.github.com/pydagogue/develop_mac.html#building-windows-release-files-with-wine
- stealing the idea from the Numpy instructions. I installed the
latest mingw into wine and built that way. I guess it will be
possible in linux too, I should check. If you get anywhere, will you
mail the list so we can follow your footsteps?
Thanks a lot,
Matthew
I bet you'll have it a lot easier with wine than trying to get all
dependencies (Python, header files, etc.) properly built and set up for
cross compilation.
Stefan
Yes, I agree - I suspect it would be a huge amount of unhappy work to
get cross-compilation to work with the distutils build machinery.
Best,
Matthew