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

Instructions on how to build py2exe 0.6.8 (or an installer would benice, too!)

Hello,

I'm trying to build an executable with py2exe, but unfortunately the
version I have is 0.6.6, which has a rather annoying bug that doesn't
let you rename the executable file if you bundle everything in a
single executable. It seems fairly unacceptable to tell our customers
that they can't rename a file we send them.

I hear this problem is fixed in 0.6.8, but unfortunately there's no
standalone installer for py2exe 0.6.8 - the most recent version that
has an installer is 0.6.6 way back from 2006 (!). Is there a
standalone installer for py2exe 0.6.8 anywhere? If not, how do I build
it from source? (There's no instructions in the readme - it just says
"How to install: download the standalone installer" and doesn't
include building instructions.)

Cheers,
Evan
Jun 27 '08 #1
12 1654
ch******@gmail.com schrieb:
Hello,

I'm trying to build an executable with py2exe, but unfortunately the
version I have is 0.6.6, which has a rather annoying bug that doesn't
let you rename the executable file if you bundle everything in a
single executable. It seems fairly unacceptable to tell our customers
that they can't rename a file we send them.

I hear this problem is fixed in 0.6.8, but unfortunately there's no
standalone installer for py2exe 0.6.8 - the most recent version that
has an installer is 0.6.6 way back from 2006 (!). Is there a
standalone installer for py2exe 0.6.8 anywhere? If not, how do I build
it from source? (There's no instructions in the readme - it just says
"How to install: download the standalone installer" and doesn't
include building instructions.)
Easy - download the sources, and enter 'python setup.py bdist_wininst' in the
top-level directory. You need the same compiler that was used to build the
Python that you use.

Thomas
Jun 27 '08 #2
On Jun 10, 11:07*am, Thomas Heller <thel...@python.netwrote:
You need the same compiler that was used to build the
Python that you use.
Thanks for the tip. So if I downloaded a binary Python instead of
building it from sources, I'm out of luck?
Jun 27 '08 #3
On Jun 10, 10:04*am, chard...@gmail.com wrote:
Hello,

I'm trying to build an executable with py2exe, but unfortunately the
version I have is 0.6.6, which has a rather annoying bug that doesn't
let you rename the executable file if you bundle everything in a
single executable. It seems fairly unacceptable to tell our customers
that they can't rename a file we send them.

I hear this problem is fixed in 0.6.8, but unfortunately there's no
standalone installer for py2exe 0.6.8 - the most recent version that
has an installer is 0.6.6 way back from 2006 (!). Is there a
standalone installer for py2exe 0.6.8 anywhere? If not, how do I build
it from source? (There's no instructions in the readme - it just says
"How to install: download the standalone installer" and doesn't
include building instructions.)

Cheers,
Evan
Maybe I'm missing something, but I can rename the executables I create
using py2exe 0.6.6 to anything I want after they're created.

Or are you talking about a Windows installer for the py2exe module
itself? Where are you finding this 0.6.8 version anyway? I can't find
it on www.py2exe.org

Anyway, what Thomas is talking about is that the only way to create a
usable installer of py2exe on Windows is to use the same compiler that
the Python you are using. As I understand it, Python 2.4 and 2.5 used
Visual Studio 2003. I think 2.3 used VS6. I have both, so I can try to
compile an installer for any of those versions if you can link me to
the source.

Mike

Python Extension Building Network: http:\\www.pythonlibrary.org
Jun 27 '08 #4
On Jun 10, 11:34*am, Mike Driscoll <kyoso...@gmail.comwrote:
Maybe I'm missing something, but I can rename the executables I create
using py2exe 0.6.6 to anything I want after they're created.

Or are you talking about a Windows installer for the py2exe module
itself? Where are you finding this 0.6.8 version anyway? I can't find
it onwww.py2exe.org

Anyway, what Thomas is talking about is that the only way to create a
usable installer of py2exe on Windows is to use the same compiler that
the Python you are using. As I understand it, Python 2.4 and 2.5 used
Visual Studio 2003. I think 2.3 used VS6. I have both, so I can try to
compile an installer for any of those versions if you can link me to
the source.

Mike

Python Extension Building Network: * * http:\\www.pythonlibrary.org
The issue with renaming executables only applies to single-file
executables, i.e. ones created with zipfile = None as an argument to
setup() and --bundle 1 as a command line argument. This is a known
issue as of 0.6.6: http://py2exe.org/index.cgi/ProblemsToBeFixed

I found sources for 0.6.8 on CVS at: http://sourceforge.net/cvs/?group_id=15583

A Windows installer for the 0.6.8 py2exe module would be ideal, but
somehow I doubt that's going to happen anytime soon since there hasn't
been a new installer since 2006. If you are willing to build that for
me (since I don't have VS) I'd really appreciate it : ) I'm using 32-
bit WinXP on this computer.
Jun 27 '08 #5
On Jun 10, 10:47*am, chard...@gmail.com wrote:
On Jun 10, 11:34*am, Mike Driscoll <kyoso...@gmail.comwrote:
Maybe I'm missing something, but I can rename the executables I create
using py2exe 0.6.6 to anything I want after they're created.
Or are you talking about a Windows installer for the py2exe module
itself? Where are you finding this 0.6.8 version anyway? I can't find
it onwww.py2exe.org
Anyway, what Thomas is talking about is that the only way to create a
usable installer of py2exe on Windows is to use the same compiler that
the Python you are using. As I understand it, Python 2.4 and 2.5 used
Visual Studio 2003. I think 2.3 used VS6. I have both, so I can try to
compile an installer for any of those versions if you can link me to
the source.
Mike
Python Extension Building Network: * * http:\\www.pythonlibrary.org

The issue with renaming executables only applies to single-file
executables, i.e. ones created with zipfile = None as an argument to
setup() and --bundle 1 as a command line argument. This is a known
issue as of 0.6.6:http://py2exe.org/index.cgi/ProblemsToBeFixed

I'm using GUI2Exe to wrap my 0.6.6 version of py2exe. I use the bundle
into a single file option in it and have zipfile=None too. But maybe
one of my other switches is different.

>
I found sources for 0.6.8 on CVS at:http://sourceforge.net/cvs/?group_id=15583

A Windows installer for the 0.6.8 py2exe module would be ideal, but
somehow I doubt that's going to happen anytime soon since there hasn't
been a new installer since 2006. If you are willing to build that for
me (since I don't have VS) I'd really appreciate it : ) I'm using 32-
bit WinXP on this computer.

I finally figured out how to check out the code. I'm at work now,
where I only have VS2008 installed so I'll have to wait until I get
home this evening to try compiling it. I'll let you know if I have any
luck.

---------------------
Mike

Python Extension Building Network: http:\\www.pythonlibrary.org
Jun 27 '08 #6
On Jun 10, 1:11*pm, Mike Driscoll <kyoso...@gmail.comwrote:
On Jun 10, 10:47*am, chard...@gmail.com wrote:
On Jun 10, 11:34*am, Mike Driscoll <kyoso...@gmail.comwrote:
Maybe I'm missing something, but I can rename the executables I create
using py2exe 0.6.6 to anything I want after they're created.
Or are you talking about a Windows installer for the py2exe module
itself? Where are you finding this 0.6.8 version anyway? I can't find
it onwww.py2exe.org
Anyway, what Thomas is talking about is that the only way to create a
usable installer of py2exe on Windows is to use the same compiler that
the Python you are using. As I understand it, Python 2.4 and 2.5 used
Visual Studio 2003. I think 2.3 used VS6. I have both, so I can try to
compile an installer for any of those versions if you can link me to
the source.
Mike
Python Extension Building Network: * * http:\\www.pythonlibrary.org
The issue with renaming executables only applies to single-file
executables, i.e. ones created with zipfile = None as an argument to
setup() and --bundle 1 as a command line argument. This is a known
issue as of 0.6.6:http://py2exe.org/index.cgi/ProblemsToBeFixed

I'm using GUI2Exe to wrap my 0.6.6 version of py2exe. I use the bundle
into a single file option in it and have zipfile=None too. But maybe
one of my other switches is different.
I found sources for 0.6.8 on CVS at:http://sourceforge.net/cvs/?group_id=15583
A Windows installer for the 0.6.8 py2exe module would be ideal, but
somehow I doubt that's going to happen anytime soon since there hasn't
been a new installer since 2006. If you are willing to build that for
me (since I don't have VS) I'd really appreciate it : ) I'm using 32-
bit WinXP on this computer.

I finally figured out how to check out the code. I'm at work now,
where I only have VS2008 installed so I'll have to wait until I get
home this evening to try compiling it. I'll let you know if I have any
luck.

---------------------
Mike

Python Extension Building Network: * * http:\\www.pythonlibrary.org
Thanks, Mike. Hopefully you'll have more luck than I've had : )

Evan
Jun 27 '08 #7
Evan,
I hear this problem is fixed in 0.6.8, but unfortunately there's no
standalone installer for py2exe 0.6.8 - the most recent version that
Maybe you can solve your problem via updating the build_exe.py after
installing py2exe 0.6.6

So:
a) use the 0.6.6 installer
b) update the build_exe.py from 0.6.8

Possible?

Best wishes,

Harald
Jun 27 '08 #8
ch******@gmail.com wrote:
On Jun 10, 11:34 am, Mike Driscoll <kyoso...@gmail.comwrote:
>Maybe I'm missing something, but I can rename the executables I create
using py2exe 0.6.6 to anything I want after they're created.

Or are you talking about a Windows installer for the py2exe module
itself? Where are you finding this 0.6.8 version anyway? I can't find
it onwww.py2exe.org

Anyway, what Thomas is talking about is that the only way to create a
usable installer of py2exe on Windows is to use the same compiler that
the Python you are using. As I understand it, Python 2.4 and 2.5 used
Visual Studio 2003. I think 2.3 used VS6. I have both, so I can try to
compile an installer for any of those versions if you can link me to
the source.

Mike

Python Extension Building Network: http:\\www.pythonlibrary.org

The issue with renaming executables only applies to single-file
executables, i.e. ones created with zipfile = None as an argument to
setup() and --bundle 1 as a command line argument. This is a known
issue as of 0.6.6: http://py2exe.org/index.cgi/ProblemsToBeFixed

I found sources for 0.6.8 on CVS at: http://sourceforge.net/cvs/?group_id=15583

A Windows installer for the 0.6.8 py2exe module would be ideal, but
somehow I doubt that's going to happen anytime soon since there hasn't
been a new installer since 2006. If you are willing to build that for
me (since I don't have VS) I'd really appreciate it : ) I'm using 32-
bit WinXP on this computer.

About every two weeks this "issue" pops up. Question: Why is is so important to
package everything into a single file? There are no Windows applications (that
I'm aware of) that ship as single files. Many of them consist of hundreds and
in some cases 'thousands' of files. Now if you want to DISTRIBUTE a single
setup.exe file, that makes sense to me. Use py2exe without the single file
option and ship a setup.exe file created by Inno Installer. Problem solved.
You will thank me when you want to include: registry entries, shortcuts,
documentation, configuration files, etc. in the distribution.

-Larry
Jun 27 '08 #9
On Jun 10, 4:47*pm, Larry Bates <larry.ba...@websafe.com`wrote:
chard...@gmail.com wrote:
On Jun 10, 11:34 am, Mike Driscoll <kyoso...@gmail.comwrote:
Maybe I'm missing something, but I can rename the executables I create
using py2exe 0.6.6 to anything I want after they're created.
Or are you talking about a Windows installer for the py2exe module
itself? Where are you finding this 0.6.8 version anyway? I can't find
it onwww.py2exe.org
Anyway, what Thomas is talking about is that the only way to create a
usable installer of py2exe on Windows is to use the same compiler that
the Python you are using. As I understand it, Python 2.4 and 2.5 used
Visual Studio 2003. I think 2.3 used VS6. I have both, so I can try to
compile an installer for any of those versions if you can link me to
the source.
Mike
Python Extension Building Network: * * http:\\www.pythonlibrary.org
The issue with renaming executables only applies to single-file
executables, i.e. ones created with zipfile = None as an argument to
setup() and --bundle 1 as a command line argument. This is a known
issue as of 0.6.6:http://py2exe.org/index.cgi/ProblemsToBeFixed
I found sources for 0.6.8 on CVS at:http://sourceforge.net/cvs/?group_id=15583
A Windows installer for the 0.6.8 py2exe module would be ideal, but
somehow I doubt that's going to happen anytime soon since there hasn't
been a new installer since 2006. If you are willing to build that for
me (since I don't have VS) I'd really appreciate it : ) I'm using 32-
bit WinXP on this computer.

About every two weeks this "issue" pops up. *Question: Why is is so important to
package everything into a single file? *There are no Windows applications (that
I'm aware of) that ship as single files. *Many of them consist of hundreds and
in some cases 'thousands' of files. *Now if you want to DISTRIBUTE a single
setup.exe file, that makes sense to me. *Use py2exe without the single file
option and ship a setup.exe file created by Inno Installer. *Problem solved.
You will thank me when you want to include: registry entries, shortcuts,
documentation, configuration files, etc. in the distribution.

-Larry
Excellent point. I do include other files with my one exe using Inno
myself. Originally when I bundled it all in one, my reasoning was that
I needed to push it out to my organization and I figured pushing one
large files was better than pushing a bunch of small ones. Or
something like that.

In retrospect, that's a dumb reason as I have lots of automated Python
installers for things like Adobe Reader and Java and they basically
just do copy jobs.

Anyway, thanks for pointing that out.

Mike
Jun 27 '08 #10
Evan,

<snip>
>
I finally figured out how to check out the code. I'm at work now,
where I only have VS2008 installed so I'll have to wait until I get
home this evening to try compiling it. I'll let you know if I have any
luck.
---------------------
Mike
Python Extension Building Network: * *

Thanks, Mike. Hopefully you'll have more luck than I've had : )

Evan

I got it compiled. They are up on my website:

http://pythonlibrary.org/python_modules.htm

I tested it on one of my simple programs and it ran. I used the 2.5
version for that test. However, it should be noted that I haven't been
able to get the tests from CVS to run. The Traceback doesn't appear to
be py2exe related though. I'll post the issue to their group and see
if they have any idea why that would be.

In the meantime, feel free to give it a try. At worst you'll have to
delete the compiled binary and the py2exe folder.

Mike
Jun 27 '08 #11
On Jun 10, 8:50 pm, Mike Driscoll <kyoso...@gmail.comwrote:
Evan,

<snip>
I finally figured out how to check out the code. I'm at work now,
where I only have VS2008 installed so I'll have to wait until I get
home this evening to try compiling it. I'll let you know if I have any
luck.
---------------------
Mike
Python Extension Building Network:
Thanks, Mike. Hopefully you'll have more luck than I've had : )
Evan

I got it compiled. They are up on my website:

http://pythonlibrary.org/python_modules.htm

I tested it on one of my simple programs and it ran. I used the 2.5
version for that test. However, it should be noted that I haven't been
able to get the tests from CVS to run. The Traceback doesn't appear to
be py2exe related though. I'll post the issue to their group and see
if they have any idea why that would be.

In the meantime, feel free to give it a try. At worst you'll have to
delete the compiled binary and the py2exe folder.

Mike
Mike -

Thank you VERY much! py2exe installed fine and I now have a working
single-file executable that I can actually change the name of. Your
website looks useful in general; I'll store it away for the next time
I need to do Python programming on win32.

Larry - I'm of the philosophy that very simple tools (as opposed to
full applications) should not require installation, and if the tool is
so simple as to not even require saving configuration/preference files
(as mine is) it shouldn't even need its own directory. It should just
be a simple, convenient, portable executable. I like the OS X .app
file format (where the "application file" is merely a directory that
behaves differently by executing the main program when you double-
click it, instead of opening the directory) but it doesn't look like
that will be adapted on Windows anytime soon, so short of making
someone dump a bunch of inconvenient files someplace on their hard
drive, a single executable is the most prudent choice, IMHO.

Thanks, everyone, for your help!

Cheers,
Evan

Jun 27 '08 #12
On Jun 11, 12:38*pm, chard...@gmail.com wrote:
On Jun 10, 8:50 pm, Mike Driscoll <kyoso...@gmail.comwrote:
Evan,
<snip>
I finally figured out how to check out the code. I'm at work now,
where I only have VS2008 installed so I'll have to wait until I get
home this evening to try compiling it. I'll let you know if I have any
luck.
---------------------
Mike
Python Extension Building Network:
Thanks, Mike. Hopefully you'll have more luck than I've had : )
Evan
I got it compiled. They are up on my website:
http://pythonlibrary.org/python_modules.htm
I tested it on one of my simple programs and it ran. I used the 2.5
version for that test. However, it should be noted that I haven't been
able to get the tests from CVS to run. The Traceback doesn't appear to
be py2exe related though. I'll post the issue to their group and see
if they have any idea why that would be.
In the meantime, feel free to give it a try. At worst you'll have to
delete the compiled binary and the py2exe folder.
Mike

Mike -

Thank you VERY much! py2exe installed fine and I now have a working
single-file executable that I can actually change the name of. Your
website looks useful in general; I'll store it away for the next time
I need to do Python programming on win32.
If you think my site is useful, you'll love Tim Golden's win32 stuff:

http://timgolden.me.uk/python-on-windows/
http://timgolden.me.uk/python/index.html

I was going to do something like his Python on Windows site, but he
beat me to the punch, so I'll be trying to help him with my limited
knowledge.

This site is also interesting: http://www.lightbird.net/py-by-example/

<snip>
>
Thanks, everyone, for your help!

Cheers,
Evan
-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org
Jun 27 '08 #13

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

Similar topics

2
by: Kylotan | last post by:
I need to be able to build Py2Exe from the source code as I am making a Windows executable where I wish to preprocess the modules before importing them.It looks like I can do this by adding lines...
2
by: Anthony Baxter | last post by:
I'm trying to use py2exe and Inno Setup to build an installer for shtoom, which uses tkinter. If I take the py2exe generated directory, and run the executable from there, it works fine. If I...
10
by: Thomas Heller | last post by:
**py2exe 0.5.0** (finally) released =================================== py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without...
5
by: Tim Axtelle | last post by:
I am new to Python and am trying to create a standalone exe from a python script using py2exe 0.5.0 and Python 2.3 without success. I am able to generate the appropriate .exe file but it is not...
5
by: Andrea Griffini | last post by:
Just a quick shoot... can I produce a "closed source" program using "core" python, pygame (and eventually psyco), packaging it by using py2exe and a custom installer ? A clear yes/no answer is...
0
by: Gary Hughes | last post by:
I have an installer project for a COM dll on my solution, when I build the installer I get a warning - see below. The properties are set so the the dll should be registered upon installation...
2
by: weichung | last post by:
I had build an installer project for my ASP.NET project. And found that several fields need to be configured, like the web.config files and etc, which requires user input. Also I need to attach my...
0
by: Simon Verona | last post by:
I have a windows forms application that I wish to build an installer for. Part of this application is an .asp webpage that I wish to install alongside the windows application and create a virtual...
1
by: Velvet | last post by:
In VS 2003 there was a menu item 'Tools' -- > 'Build Comment Web Pages'. Is that function in VS 2005? I haven't been able to find it, nor is it in Help. Thanks! Velvet
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...

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.