473,408 Members | 2,405 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,408 software developers and data experts.

crossplatform standalone python apps

Hello everyone,

I like to create a cross-platform standalone python application, like
Mac OS *.app dirs. The idea is to distribute a zip file containing
everything (the python interpreter and all) so that a user just unzips
it and runs it. Has anyone ever done anything like that? I searched
google but didn't find anything really, and currently, even in my dev
env, I have to set the PYTHONPATH manually, and for a standalone app I
couldn't do that for example.

Thank you,
Gabriel
Oct 17 '08 #1
4 2003
I like to create a cross-platform standalone python application, like
Mac OS *.app dirs. The idea is to distribute a zip file containing
everything (the python interpreter and all) so that a user just unzips
it and runs it.
I don't think this can possibly work. If the zipfile contains the Python
interpreter, it can't possibly work on all platforms - the Python
interpreter is run as native machine code of the respective CPU.

So either you drop the requirement that the zipfile must be
cross-platform, or you drop the requirement that the Python interpreter
is included in the zipfile.

Notice that Mac OS *.app dirs are *not* cross-platform, either - they
only work on Mac OS.

Regards,
Martin
Oct 17 '08 #2
Martin v. Löwis wrote:
>I like to create a cross-platform standalone python application, like
Mac OS *.app dirs. The idea is to distribute a zip file containing
everything (the python interpreter and all) so that a user just unzips
it and runs it.

I don't think this can possibly work. If the zipfile contains the Python
interpreter, it can't possibly work on all platforms - the Python
interpreter is run as native machine code of the respective CPU.
yes, I know that :-), I ment everything that can be, my problem is more
with PYTHONPATH and stuff like that.
So either you drop the requirement that the zipfile must be
cross-platform, or you drop the requirement that the Python interpreter
is included in the zipfile.

Notice that Mac OS *.app dirs are *not* cross-platform, either - they
only work on Mac OS.
Yes, I also know that, I was giving them as an example of how I'd like
it to work (out of the box)
Regards,
Martin
Regards,
Gabriel
Oct 23 '08 #3
yes, I know that :-), I ment everything that can be, my problem is more
with PYTHONPATH and stuff like that.
Then I don't understand what you meant. What is it (specifically!) that
you do, what happens, what do you want to happen instead?

Regards,
Martin
Oct 23 '08 #4
On Oct 17, 1:59*am, Gabriel Rossetti <gabriel.rosse...@arimaz.com>
wrote:
Hello everyone,

I like to create a cross-platform standalone python application, like
Mac OS *.app dirs. The idea is to distribute a zip file containing
everything (the python interpreter and all) so that a user just unzips
it and runs it. Has anyone ever done anything like that? I searched
google but didn't find anything really, and currently, even in my dev
env, I have to set the PYTHONPATH manually, and for a standalone app I
couldn't do that for example.

Thank you,
Gabriel
Use GUI2Exe. It can create frozen distributions for Mac, Windows and
Linux using py2exe, py2app, cxFreeze, etc.

Check it out here: http://code.google.com/p/gui2exe/

You will (of course) need to have py2exe et al installed if you want
GUI2Exe to interface with them.

Mike
Oct 23 '08 #5

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

Similar topics

20
by: Thomas Heller | last post by:
I'm currently working on a new version of py2exe, which will require Python 2.3 and later, because it uses the zipimport mechanism. Since py2exe is a distutils extension, and since C compilers...
2
by: Alexander Eisenhuth | last post by:
Hallo alltogether, under windows, the py2exe is first choice, but has anybody done it under Linux ? My first try with Installer http://www.mcmillan-inc.com/install5_intro.html was not...
2
by: Sandeep Gupta | last post by:
Hi, I've written a commercial application that uses Python scripts for some of the functionality. Installing the Python portion of the application requires me to first install Python, and then...
9
by: Dan Williams | last post by:
Hi people I'm getting a little annoyed with the way the print function always adds a space character between print statements unless there has been a new line. The manual mentions that "In some...
4
by: j_mckitrick | last post by:
Does it make sense to use doc strings rather than #-comments for a standalone Python app? If the classes aren't going to be re-used or imported, do they need them?
1
by: copx | last post by:
Hi, I want to write a console/terminal app in Python that requires curses-like functionality. Problem: the python curses module doesn't seem to work on Windows. In fact it doesn't work (isn't part...
9
by: Madhusudan Singh | last post by:
Hi I just finished developing an application using Qt Designer in Python that uses pyqwt, gpib, etc. How does one create standalone executables for applications such as these ? Thanks.
2
by: James Stroud | last post by:
Hello All, I am trying to create a semi-standalone with the vendor python on OS X 10.4 (python 2.3.5). I tried to include some packages with both --packages from the command and the 'packages'...
0
by: Philip Semanchuk | last post by:
On Oct 17, 2008, at 2:59 AM, Gabriel Rossetti wrote: Hi Gabriel, For details on how OS X .app dirs work, plug this into Google: "os x" application bundle But as Martin said, that's...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.