473,578 Members | 2,973 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2011
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
3679
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 are commonly available on most platforms except Windows, it would be fairly easy to let py2exe generate a C source file installing this import hook,...
2
2047
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 sucessfull. Any hints or help is welcome. Alexander
2
2608
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 install the scripts. I'm looking for an easier way to install the Python portion. I've been referred to:...
9
2039
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 cases it may be functional to write an empty string to standard output for this reason." Am I the only the who thinks that this sucks? It's the...
4
1694
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
1525
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 of the Python package) on my Linux distro (SUSE Linux 9.1 Special Edition) either. Well what should I do? The app is supposed to work on Windows and...
9
5140
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
2311
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' option in setup.py. While the packages were nicely included in the application bundle in both cases (at Contents/Resources/lib/python2.3/), they were...
0
831
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 specific to OS X and won't port to other
0
7850
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7779
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8126
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8291
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7874
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5664
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3786
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2293
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1391
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.