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
Gwenaël Samain
cython
Commits
79ddab58
Commit
79ddab58
authored
Jan 01, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
merge of 0.9.6.10.1
parents
f669e94f
3e249550
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
8 deletions
+23
-8
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+2
-2
Cython/Compiler/Nodes.py
Cython/Compiler/Nodes.py
+8
-4
Cython/Compiler/Version.py
Cython/Compiler/Version.py
+1
-1
Cython/Mac/DarwinSystem.py
Cython/Mac/DarwinSystem.py
+12
-1
No files found.
Cython/Compiler/ExprNodes.py
View file @
79ddab58
Cython/Compiler/Nodes.py
View file @
79ddab58
...
@@ -2532,8 +2532,12 @@ class ForFromStatNode(StatNode):
...
@@ -2532,8 +2532,12 @@ class ForFromStatNode(StatNode):
self
.
target
.
analyse_target_types
(
env
)
self
.
target
.
analyse_target_types
(
env
)
self
.
bound1
.
analyse_types
(
env
)
self
.
bound1
.
analyse_types
(
env
)
self
.
bound2
.
analyse_types
(
env
)
self
.
bound2
.
analyse_types
(
env
)
if
self
.
target
.
type
.
is_numeric
:
self
.
bound1
=
self
.
bound1
.
coerce_to
(
self
.
target
.
type
,
env
)
self
.
bound1
=
self
.
bound1
.
coerce_to
(
self
.
target
.
type
,
env
)
self
.
bound2
=
self
.
bound2
.
coerce_to
(
self
.
target
.
type
,
env
)
self
.
bound2
=
self
.
bound2
.
coerce_to
(
self
.
target
.
type
,
env
)
else
:
self
.
bound1
=
self
.
bound1
.
coerce_to_integer
(
env
)
self
.
bound2
=
self
.
bound2
.
coerce_to_integer
(
env
)
if
self
.
step
is
not
None
:
if
self
.
step
is
not
None
:
if
isinstance
(
self
.
step
,
ExprNodes
.
UnaryMinusNode
):
if
isinstance
(
self
.
step
,
ExprNodes
.
UnaryMinusNode
):
warning
(
self
.
step
.
pos
,
"Probable infinite loop in for-from-by statment. Consider switching the directions of the relations."
,
2
)
warning
(
self
.
step
.
pos
,
"Probable infinite loop in for-from-by statment. Consider switching the directions of the relations."
,
2
)
...
@@ -2542,14 +2546,14 @@ class ForFromStatNode(StatNode):
...
@@ -2542,14 +2546,14 @@ class ForFromStatNode(StatNode):
if
not
(
self
.
bound2
.
is_name
or
self
.
bound2
.
is_literal
):
if
not
(
self
.
bound2
.
is_name
or
self
.
bound2
.
is_literal
):
self
.
bound2
=
self
.
bound2
.
coerce_to_temp
(
env
)
self
.
bound2
=
self
.
bound2
.
coerce_to_temp
(
env
)
target_type
=
self
.
target
.
type
target_type
=
self
.
target
.
type
if
not
(
target_type
.
is_pyobject
or
target_type
.
is_
int
):
if
not
(
target_type
.
is_pyobject
or
target_type
.
is_
numeric
):
error
(
self
.
target
.
pos
,
error
(
self
.
target
.
pos
,
"Integer for-loop variable must be of type int or Python object"
)
"Integer for-loop variable must be of type int or Python object"
)
#if not (target_type.is_pyobject
#if not (target_type.is_pyobject
# or target_type.assignable_from(PyrexTypes.c_int_type)):
# or target_type.assignable_from(PyrexTypes.c_int_type)):
# error(self.target.pos,
# error(self.target.pos,
# "Cannot assign integer to variable of type '%s'" % target_type)
# "Cannot assign integer to variable of type '%s'" % target_type)
if
target_type
.
is_
int
:
if
target_type
.
is_
numeric
:
self
.
is_py_target
=
0
self
.
is_py_target
=
0
self
.
loopvar_name
=
self
.
target
.
entry
.
cname
self
.
loopvar_name
=
self
.
target
.
entry
.
cname
self
.
py_loopvar_node
=
None
self
.
py_loopvar_node
=
None
...
...
Cython/Compiler/Version.py
View file @
79ddab58
version
=
'0.9.6.10'
version
=
'0.9.6.10
b
'
Cython/Mac/DarwinSystem.py
View file @
79ddab58
...
@@ -18,7 +18,18 @@ py_include_dirs = [
...
@@ -18,7 +18,18 @@ py_include_dirs = [
"/Library/Frameworks/Python.framework/Versions/%s/Headers"
%
version_string
"/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++"
]
compilers
=
[
"gcc"
,
"g++"
]
compiler_options
=
\
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