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
8eb84ccb
Commit
8eb84ccb
authored
Sep 20, 2010
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted changes which were inadvertently committed.
parent
70b12706
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
sysconfig.py
sysconfig.py
+11
-15
No files found.
sysconfig.py
View file @
8eb84ccb
...
...
@@ -56,18 +56,6 @@ def get_python_version():
"""
return
sys
.
version
[:
3
]
def
_get_build_dir
(
name
,
plat_specific
):
# Assume the executable is in the build directory. The
# pyconfig.h file should be in the same directory. Since
# the build directory may not be the source directory, we
# must use "srcdir" from the makefile to find the "Include"
# directory.
base
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
sys
.
executable
))
if
plat_specific
:
return
base
else
:
thedir
=
os
.
path
.
join
(
get_config_var
(
'srcdir'
),
name
)
return
os
.
path
.
normpath
(
thedir
)
def
get_python_inc
(
plat_specific
=
0
,
prefix
=
None
):
"""Return the directory containing installed Python header files.
...
...
@@ -84,7 +72,17 @@ def get_python_inc(plat_specific=0, prefix=None):
prefix
=
plat_specific
and
EXEC_PREFIX
or
PREFIX
if
os
.
name
==
"posix"
:
if
python_build
:
return
_get_build_dir
(
'Include'
,
plat_specific
)
# Assume the executable is in the build directory. The
# pyconfig.h file should be in the same directory. Since
# the build directory may not be the source directory, we
# must use "srcdir" from the makefile to find the "Include"
# directory.
base
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
sys
.
executable
))
if
plat_specific
:
return
base
else
:
incdir
=
os
.
path
.
join
(
get_config_var
(
'srcdir'
),
'Include'
)
return
os
.
path
.
normpath
(
incdir
)
return
os
.
path
.
join
(
prefix
,
"include"
,
"python"
+
get_python_version
())
elif
os
.
name
==
"nt"
:
return
os
.
path
.
join
(
prefix
,
"include"
)
...
...
@@ -119,8 +117,6 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
prefix
=
plat_specific
and
EXEC_PREFIX
or
PREFIX
if
os
.
name
==
"posix"
:
if
python_build
:
return
_get_build_dir
(
'Lib'
,
plat_specific
)
libpython
=
os
.
path
.
join
(
prefix
,
"lib"
,
"python"
+
get_python_version
())
if
standard_lib
:
...
...
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