Build EXE on Mac OsX 10.4

Paul McNett p at
Thu Jun 14 16:06:39 CEST 2007

Sherm Pendley wrote:
> "Gabriel Genellina" <gagsl-py2 at> writes:
>> En Wed, 13 Jun 2007 17:35:19 -0300, Paul McNett <p at> 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 from Windows.
>> That's not entirely true. gcc on linux can generate a Windows EXE, and
>> using: python 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,
> 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 
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 

pkm ~

More information about the Python-list mailing list