Kaydet (Commit) e0fea6c4 authored tarafından Guido van Rossum's avatar Guido van Rossum

[SF bug 620364]

In build_extensions(), don't proceed if srcdir is None.  Probably
somebody who tried this on Windows. :-)
üst 5357c651
......@@ -86,6 +86,9 @@ class PyBuildExt(build_ext):
# Fix up the autodetected modules, prefixing all the source files
# with Modules/ and adding Python's include directory to the path.
(srcdir,) = sysconfig.get_config_vars('srcdir')
if not srcdir:
# Maybe running on Windows but not using CYGWIN?
raise ValueError("No source directory; cannot proceed.")
# Figure out the location of the source code for extension modules
moddir = os.path.join(os.getcwd(), srcdir, 'Modules')
......
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