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
d2c6eebc
Commit
d2c6eebc
authored
Dec 28, 2008
by
Ronald Oussoren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue4064: architecture string for universal builds on OSX
parent
0bcdf062
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
util.py
util.py
+10
-4
No files found.
util.py
View file @
d2c6eebc
...
...
@@ -100,7 +100,11 @@ def get_platform ():
if
not
macver
:
macver
=
cfgvars
.
get
(
'MACOSX_DEPLOYMENT_TARGET'
)
if
not
macver
:
if
1
:
# Always calculate the release of the running machine,
# needed to determine if we can build fat binaries or not.
macrelease
=
macver
# Get the system version. Reading this plist is a documented
# way to get the system version (see the documentation for
# the Gestalt Manager)
...
...
@@ -116,16 +120,18 @@ def get_platform ():
r'
<
string
>
(.
*
?
)
</
string
>
', f.read())
f.close()
if m is not None:
mac
ver
= '
.
'.join(m.group(1).split('
.
')[:2])
mac
release
= '
.
'.join(m.group(1).split('
.
')[:2])
# else: fall back to the default behaviour
if not macver:
macver = macrelease
if macver:
from distutils.sysconfig import get_config_vars
release = macver
osname = "macosx"
if (release + '
.
') >= '
10.4
.
' and
\
if (macrelease + '
.
') >= '
10.4
.
' and
\
'
-
arch
' in get_config_vars().get('
CFLAGS
', '').strip():
# The universal build will build fat binaries, but not on
# systems before 10.4
...
...
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