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
bc76c36d
Commit
bc76c36d
authored
Nov 24, 2010
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final patch for issue 9807.
parent
0ed78e84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
command/install.py
command/install.py
+4
-2
sysconfig.py
sysconfig.py
+16
-3
No files found.
command/install.py
View file @
bc76c36d
...
...
@@ -48,7 +48,7 @@ INSTALL_SCHEMES = {
'unix_prefix'
:
{
'purelib'
:
'$base/lib/python$py_version_short/site-packages'
,
'platlib'
:
'$platbase/lib/python$py_version_short/site-packages'
,
'headers'
:
'$base/include/python$py_version_short/$dist_name'
,
'headers'
:
'$base/include/python$py_version_short
$abiflags
/$dist_name'
,
'scripts'
:
'$base/bin'
,
'data'
:
'$base'
,
},
...
...
@@ -82,7 +82,8 @@ if HAS_USER_SITE:
INSTALL_SCHEMES
[
'unix_user'
]
=
{
'purelib'
:
'$usersite'
,
'platlib'
:
'$usersite'
,
'headers'
:
'$userbase/include/python$py_version_short/$dist_name'
,
'headers'
:
'$userbase/include/python$py_version_short$abiflags/$dist_name'
,
'scripts'
:
'$userbase/bin'
,
'data'
:
'$userbase'
,
}
...
...
@@ -322,6 +323,7 @@ class install(Command):
'prefix'
:
prefix
,
'sys_exec_prefix'
:
exec_prefix
,
'exec_prefix'
:
exec_prefix
,
'abiflags'
:
sys
.
abiflags
,
}
if
HAS_USER_SITE
:
...
...
sysconfig.py
View file @
bc76c36d
...
...
@@ -11,7 +11,6 @@ Email: <fdrake@acm.org>
__revision__
=
"$Id$"
import
io
import
os
import
re
import
sys
...
...
@@ -49,6 +48,18 @@ def _python_build():
return
False
python_build
=
_python_build
()
# Calculate the build qualifier flags if they are defined. Adding the flags
# to the include and lib directories only makes sense for an installation, not
# an in-source build.
build_flags
=
''
try
:
if
not
python_build
:
build_flags
=
sys
.
abiflags
except
AttributeError
:
# It's not a configure-based build, so the sys module doesn't have
# this attribute, which is fine.
pass
def
get_python_version
():
"""Return a string containing the major and minor Python version,
leaving off the patchlevel. Sample return values could be '1.5'
...
...
@@ -83,7 +94,8 @@ def get_python_inc(plat_specific=0, prefix=None):
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
())
python_dir
=
'python'
+
get_python_version
()
+
build_flags
return
os
.
path
.
join
(
prefix
,
"include"
,
python_dir
)
elif
os
.
name
==
"nt"
:
return
os
.
path
.
join
(
prefix
,
"include"
)
elif
os
.
name
==
"os2"
:
...
...
@@ -209,7 +221,8 @@ def get_makefile_filename():
if
python_build
:
return
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
executable
),
"Makefile"
)
lib_dir
=
get_python_lib
(
plat_specific
=
1
,
standard_lib
=
1
)
return
os
.
path
.
join
(
lib_dir
,
"config"
,
"Makefile"
)
config_file
=
'config-{}{}'
.
format
(
get_python_version
(),
build_flags
)
return
os
.
path
.
join
(
lib_dir
,
config_file
,
'Makefile'
)
def
parse_config_h
(
fp
,
g
=
None
):
...
...
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