Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ee2db3eb
Commit
ee2db3eb
authored
Feb 26, 2003
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove sitecustomize hack, will be solved elsewhere
parent
bb61a8d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
Lib/plat-mac/bundlebuilder.py
Lib/plat-mac/bundlebuilder.py
+0
-25
No files found.
Lib/plat-mac/bundlebuilder.py
View file @
ee2db3eb
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment