summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/freeze.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-19 21:58:30 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-19 21:58:30 (GMT)
commitb3afce576362ee5004817f48827c6677b87079b6 (patch)
tree956ef795e7da21e44a500061772c146beeef2066 /Tools/freeze/freeze.py
parent019db5d73efb08a50f993d7c8100cce24c08b40b (diff)
downloadcpython-b3afce576362ee5004817f48827c6677b87079b6.zip
cpython-b3afce576362ee5004817f48827c6677b87079b6.tar.gz
cpython-b3afce576362ee5004817f48827c6677b87079b6.tar.bz2
Updated for new style build/install; much simpler!
Diffstat (limited to 'Tools/freeze/freeze.py')
-rwxr-xr-xTools/freeze/freeze.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py
index 7018aca..4a555dd 100755
--- a/Tools/freeze/freeze.py
+++ b/Tools/freeze/freeze.py
@@ -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