From: Guido van Rossum Date: Mon, 14 Oct 2002 20:48:09 +0000 (+0000) Subject: [SF bug 620364] X-Git-Tag: v2.3c1~3779 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0fea6c4edcb977d722ed30de4a76a83355e2617;p=python [SF bug 620364] In build_extensions(), don't proceed if srcdir is None. Probably somebody who tried this on Windows. :-) --- diff --git a/setup.py b/setup.py index 732853483f..7ddef8bd75 100644 --- a/setup.py +++ b/setup.py @@ -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')