[Python-checkins] python/dist/src setup.py,1.111,1.112

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Mon, 14 Oct 2002 13:48:12 -0700


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv24519

Modified Files:
	setup.py 
Log Message:
[SF bug 620364]

In build_extensions(), don't proceed if srcdir is None.  Probably
somebody who tried this on Windows. :-)


Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.111
retrieving revision 1.112
diff -C2 -d -r1.111 -r1.112
*** setup.py	25 Sep 2002 14:59:57 -0000	1.111
--- setup.py	14 Oct 2002 20:48:09 -0000	1.112
***************
*** 87,90 ****
--- 87,93 ----
          # 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