Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74683fc commit dbdea62Copy full SHA for dbdea62
1 file changed
Lib/distutils/sysconfig.py
@@ -93,14 +93,11 @@ def get_python_inc(plat_specific=0, prefix=None):
93
# the build directory may not be the source directory, we
94
# must use "srcdir" from the makefile to find the "Include"
95
# directory.
96
- base = _sys_home or project_base
97
if plat_specific:
98
- return base
99
- if _sys_home:
100
- incdir = os.path.join(_sys_home, 'Include')
+ return _sys_home or project_base
101
else:
102
incdir = os.path.join(get_config_var('srcdir'), 'Include')
103
- return os.path.normpath(incdir)
+ return os.path.normpath(incdir)
104
python_dir = 'python' + get_python_version() + build_flags
105
return os.path.join(prefix, "include", python_dir)
106
elif os.name == "nt":
0 commit comments