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
Kirill Smelkov
cython
Commits
adfe0451
Commit
adfe0451
authored
Nov 26, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compile Cython.Compiler.ModuleNode module
parent
ae8d0889
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+7
-6
setup.py
setup.py
+1
-0
No files found.
Cython/Compiler/ModuleNode.py
View file @
adfe0451
...
...
@@ -2,15 +2,16 @@
# Pyrex - Module parse tree node
#
import
cython
from
cython
import
set
cython
.
declare
(
Naming
=
object
,
Options
=
object
,
PyrexTypes
=
object
,
TypeSlots
=
object
,
error
=
object
,
warning
=
object
,
py_object_type
=
object
,
UtilityCode
=
object
,
escape_byte_string
=
object
,
EncodedString
=
object
)
import
os
,
time
from
PyrexTypes
import
CPtrType
import
Future
try
:
set
except
NameError
:
# Python 2.3
from
sets
import
Set
as
set
import
Annotate
import
Code
import
Naming
...
...
@@ -1658,7 +1659,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
elif
entry
.
type
.
from_py_function
:
rhs
=
"%s(o)"
%
entry
.
type
.
from_py_function
if
entry
.
type
.
is_enum
:
rhs
=
typecast
(
entry
.
type
,
c_long_type
,
rhs
)
rhs
=
PyrexTypes
.
typecast
(
entry
.
type
,
PyrexTypes
.
c_long_type
,
rhs
)
code
.
putln
(
"%s = %s; if (%s) %s;"
%
(
entry
.
cname
,
rhs
,
...
...
setup.py
View file @
adfe0451
...
...
@@ -93,6 +93,7 @@ def compile_cython_modules(profile=False):
"Cython.Compiler.Visitor"
,
"Cython.Compiler.ParseTreeTransforms"
,
"Cython.Compiler.Optimize"
,
"Cython.Compiler.ModuleNode"
,
"Cython.Runtime.refnanny"
]
extensions
=
[]
...
...
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