This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: bdist --formats=zip,wininst and bdist --formats=wininst,zip
Type: Stage:
Components: Distutils Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: theller Nosy List: dubnerm, theller
Priority: normal Keywords:

Created on 2003-06-04 22:47 by dubnerm, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Messages (5)
msg16248 - (view) Author: Michael Dubner (dubnerm) Date: 2003-06-04 22:47
Commands
setup.py bdist --formats=zip,wininst
and
setup.py bdist --formats=wininst,zip
should create the same two archives, but in my config
first version (zip,wininst) creates broken .exe file -
no SCRIPTS and DATA directories - only PURELIB.
I'm using ActiveState Python 2.2.2 with included
distutils 1.0.3 under WinXP.
msg16249 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2003-06-11 16:21
Logged In: YES 
user_id=11105

Michael, can you please try the following patch and report
if it fixes your problem?

In the file distutils/command/bdist_wininst.py, replace the line
        install = self.reinitialize_command('install')
with this one:
        install = self.reinitialize_command('install',
reinit_subcommands=1)

This code is near line 103, just near the top of the 'def
run(self):' method.
msg16250 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2003-06-11 16:30
Logged In: YES 
user_id=11105

Oops, I didn't want to unassign it!
msg16251 - (view) Author: Michael Dubner (dubnerm) Date: 2003-06-11 22:16
Logged In: YES 
user_id=39274

Yes, it fixes the problem.
msg16252 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2003-06-12 17:32
Logged In: YES 
user_id=11105

Checked in as bdist_wininst.py rev 1.46, and rev 1.27.4.4

Thanks for the clear bug report!
History
Date User Action Args
2022-04-10 16:09:02adminsetgithub: 38592
2003-06-04 22:47:03dubnermcreate