summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/freeze.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-06-12 14:09:03 (GMT)
committerGuido van Rossum <guido@python.org>1998-06-12 14:09:03 (GMT)
commit590fc2c4fa9f831d5a1e5f7f3b59135f74f7e4ec (patch)
tree7b55c0e6075d1d4295add9067898b8d309f8eeaa /Tools/freeze/freeze.py
parent69256612d721b8582c57f9669134366db98051b0 (diff)
downloadcpython-590fc2c4fa9f831d5a1e5f7f3b59135f74f7e4ec.zip
cpython-590fc2c4fa9f831d5a1e5f7f3b59135f74f7e4ec.tar.gz
cpython-590fc2c4fa9f831d5a1e5f7f3b59135f74f7e4ec.tar.bz2
Jonathan Giddy:
The first one only shows up if $prefix != $exec_prefix, and the problem is caused by the recent change in location for config.h.
Diffstat (limited to 'Tools/freeze/freeze.py')
-rwxr-xr-xTools/freeze/freeze.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/freeze/freeze.py b/Tools/freeze/freeze.py
index b070f07..0818c4b 100755
--- a/Tools/freeze/freeze.py
+++ b/Tools/freeze/freeze.py
@@ -175,6 +175,7 @@ def main():
print "(Using Python source directory)"
binlib = exec_prefix
incldir = os.path.join(prefix, 'Include')
+ config_h_dir = exec_prefix
config_c_in = os.path.join(prefix, 'Modules', 'config.c.in')
frozenmain_c = os.path.join(prefix, 'Python', 'frozenmain.c')
makefile_in = os.path.join(exec_prefix, 'Modules', 'Makefile')
@@ -184,12 +185,14 @@ def main():
binlib = os.path.join(exec_prefix,
'lib', 'python%s' % version, 'config')
incldir = os.path.join(prefix, 'include', 'python%s' % version)
+ config_h_dir = os.path.join(exec_prefix, 'include',
+ 'python%s' % version)
config_c_in = os.path.join(binlib, 'config.c.in')
frozenmain_c = os.path.join(binlib, 'frozenmain.c')
makefile_in = os.path.join(binlib, 'Makefile')
supp_sources = []
defines = []
- includes = ['-I' + incldir, '-I' + binlib]
+ includes = ['-I' + incldir, '-I' + config_h_dir]
# sanity check of directories and files
for dir in [prefix, exec_prefix, binlib, incldir] + extensions: