summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/ccompiler.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-12-29 17:00:57 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2002-12-29 17:00:57 (GMT)
commit8c6e0ec16a39bb4ae139ec0104f6615173244664 (patch)
tree4ef685f97632aaec1d3fde9707073cbfc9849014 /Lib/distutils/ccompiler.py
parent4464432d8c6423cb0d2b6ecaf91a18a6a0c6db3f (diff)
downloadcpython-8c6e0ec16a39bb4ae139ec0104f6615173244664.zip
cpython-8c6e0ec16a39bb4ae139ec0104f6615173244664.tar.gz
cpython-8c6e0ec16a39bb4ae139ec0104f6615173244664.tar.bz2
Bug #599248: strip directories when building Python. Out-of-tree builds should work again.
Diffstat (limited to 'Lib/distutils/ccompiler.py')
-rw-r--r--Lib/distutils/ccompiler.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index edb9f75..bfcf127 100644
--- a/Lib/distutils/ccompiler.py
+++ b/Lib/distutils/ccompiler.py
@@ -15,6 +15,7 @@ from distutils.spawn import spawn
from distutils.file_util import move_file
from distutils.dir_util import mkpath
from distutils.dep_util import newer_pairwise, newer_group
+from distutils.sysconfig import python_build
from distutils.util import split_quoted, execute
from distutils import log
@@ -366,7 +367,9 @@ class CCompiler:
extra = []
# Get the list of expected output (object) files
- objects = self.object_filenames(sources, 0, outdir)
+ objects = self.object_filenames(sources,
+ strip_dir=python_build,
+ output_dir=outdir)
assert len(objects) == len(sources)
# XXX should redo this code to eliminate skip_source entirely.
@@ -472,7 +475,7 @@ class CCompiler:
which source files can be skipped.
"""
# Get the list of expected output (object) files
- objects = self.object_filenames(sources, strip_dir=0,
+ objects = self.object_filenames(sources, strip_dir=python_build,
output_dir=output_dir)
assert len(objects) == len(sources)