]> granicus.if.org Git - python/commitdiff
[SF bug 620364]
authorGuido van Rossum <guido@python.org>
Mon, 14 Oct 2002 20:48:09 +0000 (20:48 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 14 Oct 2002 20:48:09 +0000 (20:48 +0000)
In build_extensions(), don't proceed if srcdir is None.  Probably
somebody who tried this on Windows. :-)

setup.py

index 732853483fa85b9cfc66b0cd5ae1dda5b59959d8..7ddef8bd75da13ed51c38c2408e2ecadad4b7cc0 100644 (file)
--- 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')