]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
register the library inside Python.framework as eligable for stripping
authorJust van Rossum <just@letterror.com>
Fri, 20 Jun 2003 20:05:40 +0000 (20:05 +0000)
committerJust van Rossum <just@letterror.com>
Fri, 20 Jun 2003 20:05:40 +0000 (20:05 +0000)
Lib/plat-mac/bundlebuilder.py

index 7c8a80ac6af3babd2c4dbfe1ac9bd36de1379f92..9780fe638dd85277609d007499758a22ae8df4e2 100755 (executable)
@@ -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)