mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Patch from Andrew to properly set module source directory.
This commit is contained in:
parent
84d14baf94
commit
726b78ecb8
1 changed files with 2 additions and 2 deletions
4
setup.py
4
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue