bpo-30273: update distutils.sysconfig for venv's created from Python … · python/cpython@dbdea62 (original) (raw)

Original file line number Diff line number Diff line change
@@ -93,14 +93,11 @@ def get_python_inc(plat_specific=0, prefix=None):
93 93 # the build directory may not be the source directory, we
94 94 # must use "srcdir" from the makefile to find the "Include"
95 95 # directory.
96 -base = _sys_home or project_base
97 96 if plat_specific:
98 -return base
99 -if _sys_home:
100 -incdir = os.path.join(_sys_home, 'Include')
97 +return _sys_home or project_base
101 98 else:
102 99 incdir = os.path.join(get_config_var('srcdir'), 'Include')
103 -return os.path.normpath(incdir)
100 + return os.path.normpath(incdir)
104 101 python_dir = 'python' + get_python_version() + build_flags
105 102 return os.path.join(prefix, "include", python_dir)
106 103 elif os.name == "nt":