diff options
author | Just van Rossum <just@letterror.com> | 2003-02-26 11:07:59 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2003-02-26 11:07:59 (GMT) |
commit | ddf5283ad148051b9e51c3a6ccd2074923431cc9 (patch) | |
tree | d8980eafd6b45d029a55ece33d77f7415be39cf9 /Lib/plat-mac | |
parent | ec396a11e09a2979b5991ec35c5318e0a497c0a2 (diff) | |
download | cpython-ddf5283ad148051b9e51c3a6ccd2074923431cc9.zip cpython-ddf5283ad148051b9e51c3a6ccd2074923431cc9.tar.gz cpython-ddf5283ad148051b9e51c3a6ccd2074923431cc9.tar.bz2 |
remove sitecustomize hack, will be solved elsewhere
Diffstat (limited to 'Lib/plat-mac')
-rwxr-xr-x | Lib/plat-mac/bundlebuilder.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py index a263e62..8987ef0 100755 --- a/Lib/plat-mac/bundlebuilder.py +++ b/Lib/plat-mac/bundlebuilder.py @@ -226,28 +226,7 @@ if USE_ZIPIMPORT: path = fullname.replace(".", os.sep) + PYC_EXT return path, MAGIC + '\0\0\0\0' + marshal.dumps(code) -# -# The following snippet gets added as sitecustomize.py[co] to -# non-standalone apps and appended to our custom site.py for -# standalone apps. The bootstrap scripts calls os.execve() with -# an argv[0] that's different from the actual executable: argv[0] -# is the bootstrap script itself and matches the CFBundleExecutable -# value in the Info.plist. This is needed to keep the Finder happy -# and have the app work from the command line as well. However, -# this causes sys.executable to also be that value, so we correct -# that from the PYTHONEXECUTABLE environment variable that the -# bootstrap script sets. -# -SITECUSTOMIZE_PY = """\ -import sys, os -executable = os.getenv("PYTHONEXECUTABLE") -if executable is not None: - sys.executable = executable -""" - -SITE_PY += SITECUSTOMIZE_PY SITE_CO = compile(SITE_PY, "<-bundlebuilder.py->", "exec") -SITECUSTOMIZE_CO = compile(SITECUSTOMIZE_PY, "<-bundlebuilder.py->", "exec") # # Extension modules can't be in the modules zip archive, so a placeholder @@ -455,10 +434,6 @@ class AppBuilder(BundleBuilder): def postProcess(self): if self.standalone: self.addPythonModules() - else: - sitecustomizepath = pathjoin(self.bundlepath, "Contents", "Resources", - "sitecustomize" + PYC_EXT) - writePyc(SITECUSTOMIZE_CO, sitecustomizepath) if self.strip and not self.symlink: self.stripBinaries() |