Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
48467da4
Commit
48467da4
authored
Apr 30, 2010
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #8577. distutils.sysconfig.get_python_inc() now differenciates buildir and srcdir
parent
4a4731ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
sysconfig.py
sysconfig.py
+9
-5
No files found.
sysconfig.py
View file @
48467da4
...
...
@@ -71,15 +71,19 @@ def get_python_inc(plat_specific=0, prefix=None):
"""
if
prefix
is
None
:
prefix
=
plat_specific
and
EXEC_PREFIX
or
PREFIX
if
os
.
name
==
"posix"
:
if
python_build
:
b
ase
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
sys
.
executable
)
)
b
uildir
=
os
.
path
.
dirname
(
sys
.
executable
)
if
plat_specific
:
inc_dir
=
base
# python.h is located in the buildir
inc_dir
=
buildir
else
:
inc_dir
=
os
.
path
.
join
(
base
,
"Include"
)
if
not
os
.
path
.
exists
(
inc_dir
):
inc_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
base
),
"Include"
)
# the source dir is relative to the buildir
srcdir
=
os
.
path
.
abspath
(
os
.
path
.
join
(
buildir
,
get_config_var
(
'srcdir'
)))
# Include is located in the srcdir
inc_dir
=
os
.
path
.
join
(
srcdir
,
"Include"
)
return
inc_dir
return
os
.
path
.
join
(
prefix
,
"include"
,
"python"
+
get_python_version
())
elif
os
.
name
==
"nt"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment