diff options
author | Jeremy Kloth <jeremy.kloth@gmail.com> | 2017-05-09 09:24:13 -0600 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-05-09 17:24:13 +0200 |
commit | b19c8614bc78fef2b48148e4ec4ea46274320416 (patch) | |
tree | 4d087fa02777ca78d7c00668e58f0e344873a9ac | |
parent | 37a5021a1e623c5edf1a6a01ba71d967c4b1a4d2 (diff) | |
download | python-setuptools-git-b19c8614bc78fef2b48148e4ec4ea46274320416.tar.gz |
bpo-30273: update distutils.sysconfig for venv's created from Python (#1515)
compiled out-of-tree (builddir != srcdir). (see also bpo-15366)
-rw-r--r-- | sysconfig.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sysconfig.py b/sysconfig.py index 90004ace..2bcd1dd2 100644 --- a/sysconfig.py +++ b/sysconfig.py @@ -93,14 +93,11 @@ def get_python_inc(plat_specific=0, prefix=None): # the build directory may not be the source directory, we # must use "srcdir" from the makefile to find the "Include" # directory. - base = _sys_home or project_base if plat_specific: - return base - if _sys_home: - incdir = os.path.join(_sys_home, 'Include') + return _sys_home or project_base else: incdir = os.path.join(get_config_var('srcdir'), 'Include') - return os.path.normpath(incdir) + return os.path.normpath(incdir) python_dir = 'python' + get_python_version() + build_flags return os.path.join(prefix, "include", python_dir) elif os.name == "nt": |