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: IDLE icon not included in Windows installer
Type: behavior Stage: resolved
Components: IDLE, Installation, Windows Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, loewis, r.david.murray, steve.dower, terry.reedy, tim.golden, zach.ware
Priority: release blocker Keywords: patch

Created on 2014-05-10 15:04 by steve.dower, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
idleico.diff steve.dower, 2014-05-10 15:04 Adds *.ico to included files in msi.py review
Messages (10)
msg218220 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2014-05-10 15:04
#20406 changed the icon used by IDLE, but forgot to include the new file in the Windows installer. As a result, IDLE won't start.

I've attached a patch. 3.4 is unaffected, probably because msi.py changed significantly at some point.

(I don't have commit rights, but since I've never actually had a patch accepted I know exactly why. I have a few more changes coming that affect/improve PCBuild and tools\msi, but I'm happy to keep creating issues and patches if that's the right way to make these changes. On the other hand, if someone wants to give me commit rights and say "just go for it in these dirs" (in my new role as build manager for 2.7/3.5+) I'm okay with that too.)
msg218221 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2014-05-10 15:45
I'll declare this release-critical for the moment; I'm sure Benjamin will properly process it. As for getting access: send your ssh key to hgaccounts@python.org.
msg218224 - (view) Author: Tim Golden (tim.golden) * (Python committer) Date: 2014-05-10 16:23
Steve -- re changes to PCBuild &c.: worth liaising with Zach Ware (and, to a lesser extent, me) as he's been working through a number of things in that area and I know has other ideas.

Just post a patch and nosy us both (zach.ware / tim.golden)

Obviously, if it's critical: just do it.
msg218225 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2014-05-10 16:26
Martin - sent. I think I need some bits flipped on my account here too. Will/can you take care of that for me?

Tim - thanks. My next task was to figure out who else has an interest in this area. I wasn't sure if the 'windows' tag was accurate, but sounds like it is (I should probably get on there as well).
msg218231 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-05-10 18:22
Creating issues with patches, so others can comment, is a good idea even when you have commit rights. Adding yourself to
https://docs.python.org/devguide/experts.html#experts
is a good way to test new commit rights.
msg218235 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-05-10 20:05
Steve, I am *really* glad you caught this. We obviously need a new test somewhere that would have caught this before the release. How is the installer tested now? Is it run and the installed python tested with the test suite? If so, a new idle test that runs idlelib/idle.(bat, py, pyw) with subprocess, detects startup errors, and cleanly shuts down the subprocces, would cover the installer.

3.4 is not directly affected because 3.4 Tools/msi/msi.py does not include the patched section
         if dir=="Icons":
             lib.glob("*.gif")
+            lib.glob("*.ico")
             lib.add_file("idle.icns")
and .gif and .icns are not in the file. Perhaps the change matches a change in the build process.

However, new tests should go on all versions.
msg218249 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2014-05-11 04:06
Yes, by all means, commit it.
msg218250 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2014-05-11 04:19
Currently it's an entirely manual process, which is something I intend to work on for 3.5 and beyond. As far as post-mortem on this issue goes, Martin would have found it as well, since I was doing exactly what he said he normally does.

The "real" fix seems to already exist, which is why this only affects 2.7. Installers are just one of those things that are difficult to maintain in a project with lots of contributors, so the more automation the better. (It also helps to have a designated owner, so they can constantly bug people about it without having to feel like they're being annoying... I've learned this in my day job, where I own most of my team's installers.)

My commit rights are set up and working. Is anyone opposed to me pushing this fix?
msg218251 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2014-05-11 04:27
> Yes, by all means, commit it.

Obviously I spent too long writing my last comment :)

Pushed.
msg219191 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2014-05-27 01:40
Issue number was mistyped in commit message.  Commit was 730eeb10cd81.
History
Date User Action Args
2022-04-11 14:58:03adminsetgithub: 65666
2014-05-27 01:40:38r.david.murraysetnosy: + r.david.murray
messages: + msg219191
2014-05-11 09:53:15berker.peksagsetstage: test needed -> resolved
2014-05-11 04:55:31steve.dowersetstatus: open -> closed
resolution: fixed
2014-05-11 04:27:23steve.dowersetmessages: + msg218251
2014-05-11 04:19:42steve.dowersetmessages: + msg218250
2014-05-11 04:06:54benjamin.petersonsetmessages: + msg218249
2014-05-10 20:05:11terry.reedysetmessages: + msg218235
stage: test needed
2014-05-10 18:22:21terry.reedysetmessages: + msg218231
2014-05-10 16:26:07steve.dowersetmessages: + msg218225
2014-05-10 16:23:21tim.goldensetnosy: + tim.golden, zach.ware
messages: + msg218224
2014-05-10 15:45:27loewissetpriority: normal -> release blocker

messages: + msg218221
2014-05-10 15:04:51steve.dowercreate