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
711ef51a
Commit
711ef51a
authored
Jul 19, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated for new style build/install; much simpler!
parent
5ac103ea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
Tools/freeze/freeze.py
Tools/freeze/freeze.py
+5
-10
Tools/freeze/makefreeze.py
Tools/freeze/makefreeze.py
+9
-1
No files found.
Tools/freeze/freeze.py
View file @
711ef51a
...
...
@@ -109,10 +109,9 @@ def main():
incldir
=
os
.
path
.
join
(
prefix
,
'include/python%s'
%
version
)
config_c_in
=
os
.
path
.
join
(
binlib
,
'config.c.in'
)
frozenmain_c
=
os
.
path
.
join
(
binlib
,
'frozenmain.c'
)
getpath_c
=
os
.
path
.
join
(
binlib
,
'getpath.c'
)
supp_sources
=
[
frozenmain_c
,
getpath_c
]
supp_sources
=
[]
makefile_in
=
os
.
path
.
join
(
binlib
,
'Makefile'
)
defines
=
[
'-DPYTHONPATH=
\
\
"$(PYTHONPATH)
\
\
"'
]
defines
=
[]
includes
=
[
'-I'
+
incldir
,
'-I'
+
binlib
]
# sanity check of directories and files
...
...
@@ -243,11 +242,7 @@ def main():
os
.
rename
(
backup
,
config_c
)
cflags
=
defines
+
includes
+
[
'$(OPT)'
]
libs
=
[]
for
n
in
'Modules'
,
'Python'
,
'Objects'
,
'Parser'
:
n
=
'lib%s.a'
%
n
n
=
os
.
path
.
join
(
binlib
,
n
)
libs
.
append
(
n
)
libs
=
[
os
.
path
.
join
(
binlib
,
'libpython$(VERSION).a'
)]
makevars
=
parsesetup
.
getmakevars
(
makefile_in
)
somevars
=
{}
...
...
@@ -280,10 +275,10 @@ def main():
# Done!
if
odir
:
print
'Now run
make
in'
,
odir
,
print
'Now run
"make"
in'
,
odir
,
print
'to build the target:'
,
base_target
else
:
print
'Now run
make
to build the target:'
,
base_target
print
'Now run
"make"
to build the target:'
,
base_target
# Print usage message and exit
...
...
Tools/freeze/makefreeze.py
View file @
711ef51a
...
...
@@ -12,7 +12,15 @@ trailer = """\
{0, 0, 0} /* sentinel */
};
struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules;
int
main(argc, argv)
int argc;
char **argv;
{
PyImport_FrozenModules = _PyImport_FrozenModules;
return Py_FrozenMain(argc, argv);
}
"""
def
makefreeze
(
outfp
,
dict
):
...
...
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