Build EXE on Mac OsX 10.4

Sherm Pendley spamtrap at dot-app.org
Thu Jun 14 00:29:09 EDT 2007


"Gabriel Genellina" <gagsl-py2 at yahoo.com.ar> writes:

> En Wed, 13 Jun 2007 17:35:19 -0300, Paul McNett <p at ulmcnett.com> 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. :-(

sherm--

-- 
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net



More information about the Python-list mailing list