register the library inside Python.framework as eligable for stripping

This commit is contained in:
Just van Rossum 2003-06-20 20:05:40 +00:00
parent 3166f59d2a
commit 9e50023898
1 changed files with 4 additions and 2 deletions

View File

@ -502,6 +502,8 @@ def addPythonFramework(self):
for item in PYTHONFRAMEWORKGOODIES: for item in PYTHONFRAMEWORKGOODIES:
src = pathjoin(frameworkpath, item) src = pathjoin(frameworkpath, item)
dst = pathjoin(destbase, item) dst = pathjoin(destbase, item)
if item == "Python":
self.binaries.append(dst)
self.files.append((src, dst)) self.files.append((src, dst))
def addPythonModules(self): def addPythonModules(self):
@ -548,7 +550,7 @@ def stripBinaries(self):
for relpath in self.binaries: for relpath in self.binaries:
self.message("Stripping %s" % relpath, 2) self.message("Stripping %s" % relpath, 2)
abspath = pathjoin(self.bundlepath, relpath) abspath = pathjoin(self.bundlepath, relpath)
assert not os.path.islink(abspath) if not os.path.islink(abspath):
rv = os.system("%s -S \"%s\"" % (STRIP_EXEC, abspath)) rv = os.system("%s -S \"%s\"" % (STRIP_EXEC, abspath))
def findDependencies(self): def findDependencies(self):