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
9c2f75cb
Commit
9c2f75cb
authored
Jan 31, 2013
by
doko@python.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Issue #17086: Backport the patches from the 3.3 branch to cross-build
the package.
parent
30f6c6e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
sysconfig.py
sysconfig.py
+6
-1
util.py
util.py
+4
-0
No files found.
sysconfig.py
View file @
9c2f75cb
...
...
@@ -37,6 +37,11 @@ if os.name == "nt" and "\\pcbuild\\amd64" in project_base[-14:].lower():
project_base
=
os
.
path
.
abspath
(
os
.
path
.
join
(
project_base
,
os
.
path
.
pardir
,
os
.
path
.
pardir
))
# set for cross builds
if
"_PYTHON_PROJECT_BASE"
in
os
.
environ
:
# this is the build directory, at least for posix
project_base
=
os
.
path
.
normpath
(
os
.
environ
[
"_PYTHON_PROJECT_BASE"
])
# python_build: (Boolean) if true, we're either building Python or
# building an extension with an un-installed Python, so we use
# different (hard-wired) directories.
...
...
@@ -230,7 +235,7 @@ def get_config_h_filename():
def
get_makefile_filename
():
"""Return full pathname of installed Makefile from the Python build."""
if
python_build
:
return
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
executable
)
,
"Makefile"
)
return
os
.
path
.
join
(
project_base
,
"Makefile"
)
lib_dir
=
get_python_lib
(
plat_specific
=
1
,
standard_lib
=
1
)
return
os
.
path
.
join
(
lib_dir
,
"config"
,
"Makefile"
)
...
...
util.py
View file @
9c2f75cb
...
...
@@ -51,6 +51,10 @@ def get_platform ():
return
'win-ia64'
return
sys
.
platform
# Set for cross builds explicitly
if
"_PYTHON_HOST_PLATFORM"
in
os
.
environ
:
return
os
.
environ
[
"_PYTHON_HOST_PLATFORM"
]
if
os
.
name
!=
"posix"
or
not
hasattr
(
os
,
'uname'
):
# XXX what about the architecture? NT is Intel or Alpha,
# Mac OS is M68k or PPC, etc.
...
...
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