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 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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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
|
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
|
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...
|
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?
| |
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
|
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.
|
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...
|
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
|
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,...
|
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...
| |
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...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |