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
11ae970c
Commit
11ae970c
authored
Jun 25, 2014
by
Ned Deily
Browse files
Options
Browse Files
Download
Plain Diff
Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
parents
2919b636
a8edd4b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
tests/test_build_ext.py
tests/test_build_ext.py
+10
-2
No files found.
tests/test_build_ext.py
View file @
11ae970c
...
...
@@ -444,8 +444,16 @@ class BuildExtTestCase(TempdirManager,
# get the deployment target that the interpreter was built with
target
=
sysconfig
.
get_config_var
(
'MACOSX_DEPLOYMENT_TARGET'
)
target
=
tuple
(
map
(
int
,
target
.
split
(
'.'
)))
target
=
'%02d%01d0'
%
target
target
=
tuple
(
map
(
int
,
target
.
split
(
'.'
)[
0
:
2
]))
# format the target value as defined in the Apple
# Availability Macros. We can't use the macro names since
# at least one value we test with will not exist yet.
if
target
[
1
]
<
10
:
# for 10.1 through 10.9.x -> "10n0"
target
=
'%02d%01d0'
%
target
else
:
# for 10.10 and beyond -> "10nn00"
target
=
'%02d%02d00'
%
target
deptarget_ext
=
Extension
(
'deptarget'
,
[
deptarget_c
],
...
...
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