473,386 Members | 1,810 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,386 software developers and data experts.

Python on Windows

I've just written my first (simple) WxPython program - yaaaay!

What would folks suggest is the easiest way to package it to run on
other windows PCs?

I would love a single .exe file that would run without ANY OTHER FILES
even if it was 50 Mb!

TIA
Simon
Feb 3 '06 #1
8 1203
Simon Faulkner wrote:
I've just written my first (simple) WxPython program - yaaaay!

What would folks suggest is the easiest way to package it to run on
other windows PCs?

I would love a single .exe file that would run without ANY OTHER FILES
even if it was 50 Mb!

TIA
Simon


Py2Exe
Feb 3 '06 #2
Simon Faulkner wrote:
I've just written my first (simple) WxPython program - yaaaay!

What would folks suggest is the easiest way to package it to run on
other windows PCs?


I can't tell for sure since I do not use Windows, but I think Py2Exe is
what you're looking for.

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Feb 3 '06 #3
> I would love a single .exe file that would run without ANY OTHER FILES
even if it was 50 Mb!


You should look at pyinstaller
(http://pyinstaller.hpcf.upr.edu/cgi-bin/trac.cgi), as far as I know
the only py->exe compiler that makes single file executables for
windows. You may even bundle additional files as well, such as images.

Note: The 1.0 release makes exe's that depend on msvcrt71.dll (which
does not exist under win2000 and win9x). To make a universal windows
executable, you must check out the latest version from svn, or download
my temporary zip-file at
http://home.no.net/~sbrekke/SlideSho...yinstaller.zip . You may
also try my sample slide-show executable
http://home.no.net/~sbrekke/SlideShowTest/show.exe (use the
arrow-buttons to navigate. It was made from the python file
http://home.no.net/~sbrekke/SlideShowTest/show.py with the compilation
script http://home.no.net/~sbrekke/SlideShowTest/build.py).

-svein

Feb 3 '06 #4
sv***@start.no wrote:
I would love a single .exe file that would run without ANY OTHER FILES
even if it was 50 Mb!

You should look at pyinstaller
(http://pyinstaller.hpcf.upr.edu/cgi-bin/trac.cgi), as far as I know
the only py->exe compiler that makes single file executables for
windows. You may even bundle additional files as well, such as images.


py2exe can do this now too.

Feb 3 '06 #5
Simon Faulkner wrote:
I've just written my first (simple) WxPython program - yaaaay!

What would folks suggest is the easiest way to package it to run on
other windows PCs?

I would love a single .exe file that would run without ANY OTHER FILES
even if it was 50 Mb!

TIA
Simon


Use py2exe to create distribution and then use Inno Installer to
create a single setup.exe file that can easily be distributed.

-Larry Bates
Feb 4 '06 #6
Simon Faulkner wrote:
I've just written my first (simple) WxPython program - yaaaay!

What would folks suggest is the easiest way to package it to run on
other windows PCs?

I would love a single .exe file that would run without ANY OTHER FILES
even if it was 50 Mb!

TIA
Simon


Use py2exe to create distribution and then use Inno Installer to
create a single setup.exe file that can easily be distributed.

-Larry Bates

Feb 4 '06 #7
On 2006-02-03, Larry Bates <la*********@websafe.com> wrote:
What would folks suggest is the easiest way to package it to run on
other windows PCs?
Like the man said, my vote is for py2exe + inno-setup
I would love a single .exe file that would run without ANY OTHER FILES
even if it was 50 Mb!

Do you _really_ want a single exe? I haven't seen a single exe
windows program in many years (except for putty, which is many
years old).
Use py2exe to create distribution and then use Inno Installer to
create a single setup.exe file that can easily be distributed.


Definitely. Nobody does single .exe file windows programs
anymore. A single-file installer is almost as easy.

--
Grant Edwards grante Yow! Where does it go when
at you flush?
visi.com
Feb 4 '06 #8
Grant Edwards wrote:
Definitely. Nobody does single .exe file windows programs
anymore. A single-file installer is almost as easy.

uTorrent, Process Explorer or Media Player Classic are single .exe
windows programs.

Granted, most of them are under-150kb-works-of-arts, but MPC isn't (well
it's a work of art, but it's well over 5Mb now), but even then, some
people STILL do single .exe windows programs, and some of these are the
best programs in their fields (utorrent certainly is one of the best
Torrent programs on windows, and it clearly has the very best
features/exe size and features/ram consumption ratios, and I haven't
seen anything that could even remotely close on to Process Explorer,
RegMon or FileMon)
Feb 4 '06 #9

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

Similar topics

8
by: Will | last post by:
I just discovered Python and looked briefly at one of the tutorials for beginners... It looks a lot like the old Command line Basic... I'm sure it does much more but... 1 - Can you create...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 407 open ( +3) / 3393 closed (+17) / 3800 total (+20) Bugs : 888 open (+28) / 6145 closed (+14) / 7033 total (+42) RFE : 232 open...
24
by: Joe Salmeri | last post by:
I just upgraded from Python 2.4.2 to Python 2.5.1 and have found some unexpected behavior that appears to be a bug in the os.stat module. My OS is Windows XP SP2 + all updates. I have several...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.