[Python-bugs-list] [ python-Bugs-688266 ] IDLE does not work on Mac OS X

SourceForge.net noreply@sourceforge.net
Mon, 17 Feb 2003 13:47:20 -0800


Bugs item #688266, was opened at 2003-02-17 21:47
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=688266&group_id=5470

Category: IDLE
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Tony Lownds (tonylownds)
Assigned to: Nobody/Anonymous (nobody)
Summary: IDLE does not work on Mac OS X

Initial Comment:
When building a framework build of python, the IDLE application that is made does not work anymore.

Here is the command that is causing trouble:

/Library/Frameworks/../../Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/python ../python/dist/src/Mac/scripts/BuildApplet.py --output /Library/Frameworks/../../Applications/MacPython-2.3/IDLE.app --extra ../python/dist/src/Tools/idle ../python/dist/src/Tools/idle/idle

or essentially:

python Mac/scripts/BuildApplet.py --output /Applications/MacPython-2.3/IDLE.app --extra Tools/idle Tools/idle/idle

The semantics of BuildApplet.py (well, buildtools.py) changed slightly, in a way that upset IDLE's build - it used to copy its argument (the main program file) into Resources/ under a new name - __main__.py. This changed so that the main program file keeps the same file name.

For IDLE, the main program is Tools/idle/idle but the Tools/idle directory needs to be copied into the bundle as well; before the slight semantic change in buildtools.py this worked OK but now two things named "idle" are getting copied to Resources/ and its not working.

Its hard to argue that BuildApplet really should support an --extra argument with the same basename as the main program file. Perhaps the best fix is to integrate the latest idlefork with Python 2.3 - this would eliminate this problem because the main file for mac applets is not called idle in idlefork.

Another way to fix this would be to extend BuildApplet and buildtools and bundlebuilder so that it is possible to specify a new name for the --extra argument, something like:

python Mac/scripts/BuildApplet.py --output IDLE.app --extra Tools/idle --rename-extra idlelib Tools/idle/idle


But the first fix option seems way more palateable.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=688266&group_id=5470