summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-10-14 20:48:09 (GMT)
committerGuido van Rossum <guido@python.org>2002-10-14 20:48:09 (GMT)
commite0fea6c4edcb977d722ed30de4a76a83355e2617 (patch)
tree3b934b462c090b7c0977c8f786fa2c401d8d0215
parent5357c6511dcac17e1c80dbdeaea6c1016f44f4e5 (diff)
downloadcpython-e0fea6c4edcb977d722ed30de4a76a83355e2617.zip
cpython-e0fea6c4edcb977d722ed30de4a76a83355e2617.tar.gz
cpython-e0fea6c4edcb977d722ed30de4a76a83355e2617.tar.bz2
[SF bug 620364]
In build_extensions(), don't proceed if srcdir is None. Probably somebody who tried this on Windows. :-)
-rw-r--r--setup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 7328534..7ddef8b 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')