diff setup.py @ 25790:83828583d917 legacy-trunk

[SF bug 620364] In build_extensions(), don't proceed if srcdir is None. Probably somebody who tried this on Windows. :-)
author Guido van Rossum <guido@python.org>
date Mon, 14 Oct 2002 20:48:09 +0000
parents 832084a30280
children 521e89c4ff44
line wrap: on
line diff
--- a/setup.py	Mon Oct 14 20:03:40 2002 +0000
+++ b/setup.py	Mon Oct 14 20:48:09 2002 +0000
@@ -86,6 +86,9 @@
         # 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')