]> granicus.if.org Git - python/commitdiff
Patch from Andrew to properly set module source directory.
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Wed, 24 Jan 2001 17:18:21 +0000 (17:18 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Wed, 24 Jan 2001 17:18:21 +0000 (17:18 +0000)
setup.py

index d540bfca66085d1d5dc00d402cca39bb37cb86d2..fc68172758b3e021ab15f4bbadbc66f5a5a46ebf 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -65,8 +65,8 @@ class PyBuildExt(build_ext):
         # with Modules/ and adding Python's include directory to the path.
         (srcdir,) = sysconfig.get_config_vars('srcdir')
 
-        #
-        moddir = os.path.join(os.getcwd(), 'Modules', srcdir)
+        # Figure out the location of the source code for extension modules
+        moddir = os.path.join(os.getcwd(), srcdir, 'Modules')
         moddir = os.path.normpath(moddir)
         srcdir, tail = os.path.split(moddir)
         srcdir = os.path.normpath(srcdir)