diff options
author | Thomas Wouters <thomas@python.org> | 2006-06-08 14:52:47 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-06-08 14:52:47 (GMT) |
commit | 1ba5b3b425e970ec3e4a19165475aa68fa5ac893 (patch) | |
tree | 607d666a002704ccb6a8cc5d1739b729a64cc615 /Mac/Tools/IDE/BuildIDE.py | |
parent | 4d70c3d9dded0f0fa7a73c67217a71111d05df4d (diff) | |
download | cpython-1ba5b3b425e970ec3e4a19165475aa68fa5ac893.zip cpython-1ba5b3b425e970ec3e4a19165475aa68fa5ac893.tar.gz cpython-1ba5b3b425e970ec3e4a19165475aa68fa5ac893.tar.bz2 |
Merged revisions 46607-46608 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r46607 | neal.norwitz | 2006-06-03 06:49:00 +0200 (Sat, 03 Jun 2006) | 1 line
Remove Mac OS 9 support (http://mail.python.org/pipermail/python-dev/2006-June/065538.html)
........
r46608 | martin.v.loewis | 2006-06-03 09:37:13 +0200 (Sat, 03 Jun 2006) | 2 lines
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
........
Diffstat (limited to 'Mac/Tools/IDE/BuildIDE.py')
-rw-r--r-- | Mac/Tools/IDE/BuildIDE.py | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/Mac/Tools/IDE/BuildIDE.py b/Mac/Tools/IDE/BuildIDE.py deleted file mode 100644 index 914028c..0000000 --- a/Mac/Tools/IDE/BuildIDE.py +++ /dev/null @@ -1,40 +0,0 @@ -"""Build a "big" applet for the IDE, and put it in the Python home -directory. It will contain all IDE-specific modules as PYC resources, -which reduces the startup time (especially on slower machines).""" - -import sys -import os -import buildtools -from Carbon import Res -import py_resource - -buildtools.DEBUG=1 - -template = buildtools.findtemplate() - -ide_home = os.path.join(sys.exec_prefix, ":Mac:Tools:IDE") - -mainfilename = os.path.join(ide_home, "PythonIDE.py") -dstfilename = os.path.join(sys.exec_prefix, "Python IDE") - -buildtools.process(template, mainfilename, dstfilename, 1) - -targetref = Res.FSpOpenResFile(dstfilename, 3) -Res.UseResFile(targetref) - -files = os.listdir(ide_home) - -# skip this script and the main program -files = filter(lambda x: x[-3:] == '.py' and - x not in ("BuildIDE.py", "PythonIDE.py"), files) - -# add the modules as PYC resources -for name in files: - print "adding", name - fullpath = os.path.join(ide_home, name) - id, name = py_resource.frompyfile(fullpath, name[:-3], preload=1, - ispackage=0) - -# add W resources -wresref = Res.FSpOpenResFile(os.path.join(ide_home, "Widgets.rsrc"), 1) -buildtools.copyres(wresref, targetref, [], 0) |