473,320 Members | 1,926 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,320 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 3864
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.