On Thu, Aug 20, 2009 at 4:44 PM, David Cournapeau<[email protected]> wrote:
> On Thu, Aug 13, 2009 at 1:33 AM, Fernando
> Perez<[email protected]> wrote:

>> By the way, David did this on a wine setup he has on his Mac laptop in
>> just a couple of minutes!  So it seems that once you have the right
>> setup, it's not a huge deal.
>
> It is quite easy to set up: you can install wine for mac os x
> (darwine), install python + mingw into wine, and that's it.
>
> I have for example an alist winepy="WINEPATH
> $HOME/.wine/drive_c/Python25/python.exe", and then making the binary
> is just an issue of:
>
> winepy setup.py bdist_wininst
>
> Numpy and scipy binaries are actually entirely built under wine as
> well nowadays, it is a viable alternative to the endless windows pain.

I should add that Stefan vdW pointed out to me that the detailed
tutorial on how to set this wine machinery lives in fact on the Cython
wiki :)

http://wiki.cython.org/BuildingWindowsInstaller

I did it a few days ago, and I can now build a Cython installer in no time flat:

maqroll[Cython-0.11.2]> uname -a
Linux maqroll 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC
2009 i686 GNU/Linux
maqroll[Cython-0.11.2]> time wine python setup.py bdist_wininst
Compiling module Cython.Plex.Scanners ...
Compiling module Cython.Compiler.Scanning ...
Compiling module Cython.Compiler.Parsing ...
Compiling module Cython.Compiler.Visitor ...
Compiling module Cython.Runtime.refnanny ...
running bdist_wininst

[... snip long output ]

adding 'PLATLIB\pyximport\pyxbuild.py'
adding 'SCRIPTS\cython.py'
creating dist
removing 'build\bdist.win32\wininst' (and everything under it)

real    0m20.775s
user    0m5.764s
sys     0m0.500s

This is really great: the setup takes a few minutes, and now I don't
even have to fire up VirtualBox and spend any time in the godforsaken
hell that is Windows to build installers for code with C extensions!

Cheers,

f
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to