homepage

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: distutils shows incorrect Python version in MSI installers
Type: behavior Stage:
Components: Distutils Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: tarek Nosy List: MarioVilas, eric.araujo, loewis, tarek
Priority: normal Keywords:

Created on 2009年12月05日 07:49 by MarioVilas, last changed 2022年04月11日 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
msi_installer_wrong_message.png MarioVilas, 2009年12月05日 07:49 capture showing the bug
Messages (5)
msg95984 - (view) Author: Mario Vilas (MarioVilas) Date: 2009年12月05日 07:49
I just hit this silly bug in distutils, should be quite easy to fix.
When building MSI installers for a target_version other than the current
Python version, the target directory selection dialog shows a wrong message.
For example, here is a screen capture of an installer built using Python
2.6, but setting the target as Python 2.5. The message says:
 "The destination directory should contain a Python 2.6 installation"
when it should be:
 "The destination directory should contain a Python 2.5 installation".
msg95985 - (view) Author: Mario Vilas (MarioVilas) Date: 2009年12月05日 07:51
My proposed patch is to change line 506 of bdist_msi.py from this:
 version = sys.version[:3]+" "
to this:
 version = self.target_version[:3]+" "
which is what I did to work around the problem.
msg96577 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009年12月18日 19:19
The patch looks good to me. I am putting Martin on the noselist so he
can validate this.
Notice that this Dialog has been changed in trunk, so this need to be
fixed only in the 2.6 branch.
msg132168 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011年03月25日 22:13
Is this out of date?
msg132173 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2011年03月25日 22:35
Yes, this is out of date since 2416f166de4b 
History
Date User Action Args
2022年04月11日 14:56:55adminsetgithub: 51689
2011年03月25日 22:35:44loewissetstatus: open -> closed
resolution: out of date
messages: + msg132173
2011年03月25日 22:13:56eric.araujosetnosy: + eric.araujo
messages: + msg132168
2009年12月18日 19:19:31tareksetnosy: + loewis
messages: + msg96577
2009年12月05日 07:51:17MarioVilassetmessages: + msg95985
2009年12月05日 07:49:22MarioVilascreate

AltStyle によって変換されたページ (->オリジナル) /