473,392 Members | 1,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,392 software developers and data experts.

Build EXE on Mac OsX 10.4

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

Jun 13 '07 #1
7 3869
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
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.

--
pkm ~ http://paulmcnett.com
Jun 13 '07 #2
-b
Okay. Great. Thanks for clarifying that for me.

Jun 13 '07 #3
Paul McNett wrote:
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
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.
Also, use py2app--that's the standard on the Mac. I don't believe
pyinstaller works on OS X.

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Jun 13 '07 #4
Paul McNett wrote:
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
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.
Also, use py2app--that's the standard on the Mac. I don't believe
pyinstaller works on OS X.

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Jun 13 '07 #5
En Wed, 13 Jun 2007 17:35:19 -0300, Paul McNett <p@ulmcnett.comescribió:
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.

--
Gabriel Genellina

Jun 14 '07 #6
"Gabriel Genellina" <ga*******@yahoo.com.arwrites:
En Wed, 13 Jun 2007 17:35:19 -0300, Paul McNett <p@ulmcnett.comescribió:
>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
Jun 14 '07 #7
Sherm Pendley wrote:
"Gabriel Genellina" <ga*******@yahoo.com.arwrites:
>En Wed, 13 Jun 2007 17:35:19 -0300, Paul McNett <p@ulmcnett.comescribió:
>>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
Jun 14 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
2
by: Rudy Ray Moore | last post by:
How can I modify the project build order of a multi-project workspace under "Visual Studio .net 2003 7.1 c++"? I tried to modify the .sln by hand to influence the build order, but it didn't seem...
3
by: Julian | last post by:
Build.Net is a build tool that parses and builds VS.NET project files. Build.Net is run from the command line. It recursively searches a directory for VS.NET project files to build. This...
0
by: Andrew Ayre | last post by:
Hi, I can't seem to get the library built, and any help is greatly appreciated. Here is the info: Windows XP Borland C++ Builder 5 Latest Boost source code (downloaded at the weekend) Windows...
1
by: AlexZh | last post by:
Hi, I'd like to stop command line build by one project build failed. To do that I've created simple AddIn (see code below), that works fine for IDE and does not work for command line. In the AddIn...
5
by: eranshuman | last post by:
Hi, I m very new to perl I m running an API which have the Buil.pl When Im compiling using perl Build.pl I was getting error : Can't locate Module/Build.pm in @INC (@INC contains:...
0
by: Akira Kitada | last post by:
Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. """ Failed to find the necessary bits to build these modules: _bsddb ...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 08:39, Akira Kitada wrote: Please post a bug report on python.org about these failures. The multiprocessing module is still fairly new and obviously needs more fine tuning for...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.