summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-01-24 17:18:21 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-01-24 17:18:21 (GMT)
commit726b78ecb8660278399abaf36f98dec56ecf1271 (patch)
treea1f4a54274a67f1836674d16be58169825ac5941 /setup.py
parent84d14baf948656461007fe4adfb9074274ac77d6 (diff)
downloadcpython-726b78ecb8660278399abaf36f98dec56ecf1271.zip
cpython-726b78ecb8660278399abaf36f98dec56ecf1271.tar.gz
cpython-726b78ecb8660278399abaf36f98dec56ecf1271.tar.bz2
Patch from Andrew to properly set module source directory.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index d540bfc..fc68172 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)