473,581 Members | 2,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1672
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.or g

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.or g
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.or g
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.or g

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...@we bsafe.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.or g
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

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

Similar topics

2
2677
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 to Load_Module() in py2exe's start.c. However problem I have is that I can't build Py2Exe using the instructions provided. Using the designated...
2
6968
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 add all the files in the directory to an installer (including the tk-8.4 and tcl-8.4 directories), it builds an installer fine. But when I run the...
10
2249
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 requiring a python installation. News Python 2.3 is required, because the new zipimport feature is used.
5
1648
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 executable. Running it does absolutely nothing. The sourceforge site says that wsvc6 is required for py2exe. Is this true? If so, it is...
5
3079
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 something I'll be asked about when proposing python as an interesting alternative. If the answer is "no" (as I fear) what's the minimum of...
0
1633
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 however since this warning has started appearing the dll no longer registers automatically although I can do it by hand with no problems. Does anyone...
2
1458
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 database using the installer project, anybody could suggest how I could perform similar action? One of my idea is to build a winform project which...
0
1034
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 directory for. I know how to build a windows installer, and also how to build a web installer that will create the virtual directory and install...
1
1736
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
0
8149
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
8304
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
7899
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
5674
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
5364
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...
0
3805
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...
0
3827
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1403
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1138
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...

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.