Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1561ae13
Commit
1561ae13
authored
Apr 14, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'get_python_inc()' to figure out the Python include directories
rather than cobbling them togethere here.
parent
2b9e43f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
Lib/distutils/command/build_ext.py
Lib/distutils/command/build_ext.py
+5
-8
No files found.
Lib/distutils/command/build_ext.py
View file @
1561ae13
...
...
@@ -105,12 +105,9 @@ class build_ext (Command):
# Make sure Python's include directories (for Python.h, config.h,
# etc.) are in the include search path. We have to roll our own
# "exec include dir", because the Makefile parsed by sysconfig
# doesn't have it (sigh).
py_include
=
sysconfig
.
INCLUDEPY
# prefix + "include" + "python" + ver
exec_py_include
=
os
.
path
.
join
(
sysconfig
.
exec_prefix
,
'include'
,
'python'
+
sys
.
version
[
0
:
3
])
# etc.) are in the include search path.
py_include
=
sysconfig
.
get_python_inc
()
plat_py_include
=
sysconfig
.
get_python_inc
(
plat_specific
=
1
)
if
self
.
include_dirs
is
None
:
self
.
include_dirs
=
self
.
distribution
.
include_dirs
or
[]
if
type
(
self
.
include_dirs
)
is
StringType
:
...
...
@@ -120,8 +117,8 @@ class build_ext (Command):
# Put the Python "system" include dir at the end, so that
# any local include dirs take precedence.
self
.
include_dirs
.
append
(
py_include
)
if
exec
_py_include
!=
py_include
:
self
.
include_dirs
.
insert
(
0
,
exec
_py_include
)
if
plat
_py_include
!=
py_include
:
self
.
include_dirs
.
append
(
plat
_py_include
)
if
type
(
self
.
libraries
)
is
StringType
:
self
.
libraries
=
[
self
.
libraries
]
...
...
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