473,657 Members | 2,432 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 2012
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
3685
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, and let distutils' C compiler build an executable file from this. Would this be useful, or would...
2
2052
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
2610
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: http://www.mcmillan-inc.com/install1.html Which application would people recommend for creating a standalone
9
2043
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 first thing I've come across in Python that I really think is a design flaw. Is there a good way to...
4
1701
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
1526
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 Linux at least (more platforms would be nice). TIA, copx
9
5144
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
2312
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 not found by python when the program was launched, giving the error: "ImportError: No module...
0
833
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
8310
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6166
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4155
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.