0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00

Distutils apparently requires an absolute path so provide one.

This commit is contained in:
Neil Schemenauer 2009-02-06 00:27:50 +00:00
parent 6411aa5dd4
commit 4d491a535c

View File

@ -117,7 +117,7 @@ class PyBuildExt(build_ext):
if not srcdir:
# Maybe running on Windows but not using CYGWIN?
raise ValueError("No source directory; cannot proceed.")
srcdir = os.path.normpath(srcdir)
srcdir = os.path.abspath(srcdir)
moddirlist = [os.path.join(srcdir, 'Modules')]
# Platform-dependent module source and include directories