Sherm Pendley wrote: > "Gabriel Genellina" <[EMAIL PROTECTED]> writes: > >> En Wed, 13 Jun 2007 17:35:19 -0300, Paul McNett <[EMAIL PROTECTED]> escribió: >> >>> Tempo wrote: >>>> Has anyone sucesfully built a *.exe file on a mac operating system >>>> before from a *.py file? I have been trying to do this with >>>> pyinstaller, but I keep getting errors and I don't know how to >>>> install [...] >>> You need to build Mac Apps on Mac, Windows EXE's on Windows, and Linux >>> ELF's on Linux. You can't build a windows.exe from Mac, just as you >>> can't build a mac.app from Windows. >> That's not entirely true. gcc on linux can generate a Windows EXE, and >> using: python setup.py bdist_wininst, you can generate a complete >> binary installer for Windows. I'm not sure if this can be done on a >> Mac too. > > In principle, certainly - there's even a MacPort package for a complete > cygwin installation. I've built a number of packages with it - SDL and > several related libraries, for instance. There are also ELF cross-compiler > MacPort packages, presumably for building Linux binaries. > > On the other hand, I *haven't* tried any of those compilers with setup.py, > and I have no idea if it can support those targets in practice. :-(
There's the rub. In practice, it is hard enough getting my setup.py correct for building a nice windows.exe from Windows. Plus, the first thing I want to do after building an exe is *test* it on the target platform... -- pkm ~ http://paulmcnett.com -- http://mail.python.org/mailman/listinfo/python-list