summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2003-06-20 20:05:40 (GMT)
committerJust van Rossum <just@letterror.com>2003-06-20 20:05:40 (GMT)
commit9e50023898e8f556d5d74f1bbf008d6a100430d7 (patch)
tree9ed00415ef7f86bae11de1bdd74e9ea637bce4d7 /Lib/plat-mac
parent3166f59d2a9f3922902837db3de208c530cca89d (diff)
downloadcpython-9e50023898e8f556d5d74f1bbf008d6a100430d7.zip
cpython-9e50023898e8f556d5d74f1bbf008d6a100430d7.tar.gz
cpython-9e50023898e8f556d5d74f1bbf008d6a100430d7.tar.bz2
register the library inside Python.framework as eligable for stripping
Diffstat (limited to 'Lib/plat-mac')
-rwxr-xr-xLib/plat-mac/bundlebuilder.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py
index 7c8a80a..9780fe6 100755
--- a/Lib/plat-mac/bundlebuilder.py
+++ b/Lib/plat-mac/bundlebuilder.py
@@ -502,6 +502,8 @@ class AppBuilder(BundleBuilder):
for item in PYTHONFRAMEWORKGOODIES:
src = pathjoin(frameworkpath, item)
dst = pathjoin(destbase, item)
+ if item == "Python":
+ self.binaries.append(dst)
self.files.append((src, dst))
def addPythonModules(self):
@@ -548,8 +550,8 @@ class AppBuilder(BundleBuilder):
for relpath in self.binaries:
self.message("Stripping %s" % relpath, 2)
abspath = pathjoin(self.bundlepath, relpath)
- assert not os.path.islink(abspath)
- rv = os.system("%s -S \"%s\"" % (STRIP_EXEC, abspath))
+ if not os.path.islink(abspath):
+ rv = os.system("%s -S \"%s\"" % (STRIP_EXEC, abspath))
def findDependencies(self):
self.message("Finding module dependencies", 1)