Build EXE on Mac OsX 10.4

T

Tempo

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
UPX properly. I tried putting the linux UPX folder in my python 2.4
directory, but that didn't work. I am just generally confused right
now. Ha. If anybody can lend me some insight I would really appreciate
it. Thank you for taking the time to read this post.

-b
 
P

Paul McNett

Tempo said:
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
UPX properly. I tried putting the linux UPX folder in my python 2.4
directory, but that didn't work. I am just generally confused right
now. Ha. If anybody can lend me some insight I would really appreciate
it. Thank you for taking the time to read this post.

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.
 
K

Kevin Walzer

Paul said:
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.
Also, use py2app--that's the standard on the Mac. I don't believe
pyinstaller works on OS X.
 
K

Kevin Walzer

Paul said:
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.
Also, use py2app--that's the standard on the Mac. I don't believe
pyinstaller works on OS X.
 
G

Gabriel Genellina

Tempo said:
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.
 
S

Sherm Pendley

Gabriel Genellina said:
Tempo said:
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--
 
P

Paul McNett

Sherm said:
Gabriel Genellina said:
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top