Commit 711ef51a authored by Guido van Rossum's avatar Guido van Rossum

Updated for new style build/install; much simpler!

parent 5ac103ea
...@@ -109,10 +109,9 @@ def main(): ...@@ -109,10 +109,9 @@ def main():
incldir = os.path.join(prefix, 'include/python%s' % version) incldir = os.path.join(prefix, 'include/python%s' % version)
config_c_in = os.path.join(binlib, 'config.c.in') config_c_in = os.path.join(binlib, 'config.c.in')
frozenmain_c = os.path.join(binlib, 'frozenmain.c') frozenmain_c = os.path.join(binlib, 'frozenmain.c')
getpath_c = os.path.join(binlib, 'getpath.c') supp_sources = []
supp_sources = [frozenmain_c, getpath_c]
makefile_in = os.path.join(binlib, 'Makefile') makefile_in = os.path.join(binlib, 'Makefile')
defines = ['-DPYTHONPATH=\\"$(PYTHONPATH)\\"'] defines = []
includes = ['-I' + incldir, '-I' + binlib] includes = ['-I' + incldir, '-I' + binlib]
# sanity check of directories and files # sanity check of directories and files
...@@ -243,11 +242,7 @@ def main(): ...@@ -243,11 +242,7 @@ def main():
os.rename(backup, config_c) os.rename(backup, config_c)
cflags = defines + includes + ['$(OPT)'] cflags = defines + includes + ['$(OPT)']
libs = [] libs = [os.path.join(binlib, 'libpython$(VERSION).a')]
for n in 'Modules', 'Python', 'Objects', 'Parser':
n = 'lib%s.a' % n
n = os.path.join(binlib, n)
libs.append(n)
makevars = parsesetup.getmakevars(makefile_in) makevars = parsesetup.getmakevars(makefile_in)
somevars = {} somevars = {}
...@@ -280,10 +275,10 @@ def main(): ...@@ -280,10 +275,10 @@ def main():
# Done! # Done!
if odir: if odir:
print 'Now run make in', odir, print 'Now run "make" in', odir,
print 'to build the target:', base_target print 'to build the target:', base_target
else: 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 # Print usage message and exit
......
...@@ -12,7 +12,15 @@ trailer = """\ ...@@ -12,7 +12,15 @@ trailer = """\
{0, 0, 0} /* sentinel */ {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): def makefreeze(outfp, dict):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment