Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
24ceae4f
Commit
24ceae4f
authored
Dec 31, 2007
by
Brian Granger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MACOSX_DEPLOYMENT_TARGET fix for OS X 10.5
parent
9607b544
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
Cython/Mac/DarwinSystem.py
Cython/Mac/DarwinSystem.py
+13
-1
No files found.
Cython/Mac/DarwinSystem.py
View file @
24ceae4f
...
...
@@ -18,7 +18,19 @@ py_include_dirs = [
"/Library/Frameworks/Python.framework/Versions/%s/Headers"
%
version_string
]
os
.
environ
[
"MACOSX_DEPLOYMENT_TARGET"
]
=
"10.3"
# MACOSX_DEPLOYMENT_TARGET can be set to 10.3 in most cases.
# But for the built-in Python 2.5.1 on Leopard, it needs to be set for 10.5.
# This looks like a bug that will be fixed in 2.5.2. If Apple updates their
# Python to 2.5.2, this fix should be OK.
import
distutils.sysconfig
as
sc
python_prefix
=
sc
.
get_config_var
(
'prefix'
)
leopard_python_prefix
=
'/System/Library/Frameworks/Python.framework/Versions/2.5'
full_version
=
"%s.%s.%s"
%
sys
.
version_info
[:
3
]
if
python_prefix
==
leopard_python_prefix
and
full_version
==
'2.5.1'
:
os
.
environ
[
"MACOSX_DEPLOYMENT_TARGET"
]
=
"10.5"
else
:
os
.
environ
[
"MACOSX_DEPLOYMENT_TARGET"
]
=
"10.3"
compilers
=
[
"gcc"
,
"g++"
]
compiler_options
=
\
...
...
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