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
5132893c
Commit
5132893c
authored
Sep 15, 2009
by
Ronald Oussoren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish support for --with-universal-archs=intel
and --with-universal-archs=3-way (issue6245)
parent
7bb74b86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
util.py
util.py
+20
-5
No files found.
util.py
View file @
5132893c
...
...
@@ -144,11 +144,26 @@ def get_platform():
machine = '
fat
'
cflags = get_config_vars().get('
CFLAGS
')
if '
-
arch
x86_64
' in cflags:
if '
-
arch
i386
' in cflags:
machine = '
universal
'
else:
machine = '
fat64
'
archs = re.findall('
-
arch
\
s
+
(
\
S
+
)
', cflags)
archs.sort()
archs = tuple(archs)
if len(archs) == 1:
machine = archs[0]
elif archs == ('
i386
', '
ppc
'):
machine = '
fat
'
elif archs == ('
i386
', '
x86_64
'):
machine = '
intel
'
elif archs == ('
i386
', '
ppc
', '
x86_64
'):
machine = '
fat3
'
elif archs == ('
ppc64
', '
x86_64
'):
machine = '
fat64
'
elif archs == ('
i386
', '
ppc
', '
ppc64
', '
x86_64
'):
machine = '
universal
'
else:
raise ValueError(
"Don'
t
know
machine
value
for
archs
=%
r"%(archs,))
elif machine in ('PowerPC', 'Power_Macintosh'):
# Pick a sane name for the PPC architecture.
...
...
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