From: Neil Schemenauer Date: Wed, 24 Jan 2001 17:18:21 +0000 (+0000) Subject: Patch from Andrew to properly set module source directory. X-Git-Tag: v2.1a2~211 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=726b78ecb8660278399abaf36f98dec56ecf1271;p=thirdparty%2FPython%2Fcpython.git Patch from Andrew to properly set module source directory. --- diff --git a/setup.py b/setup.py index d540bfca6608..fc68172758b3 100644 --- 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)