Commit b17d50ca authored by Stefan Behnel's avatar Stefan Behnel

compile Cython.Compiler.Optimize module

parent 512cdc7a
import cython
from cython import set
cython.declare(UtilityCode=object, EncodedString=object, BytesLiteral=object,
Nodes=object, ExprNodes=object, PyrexTypes=object, Builtin=object,
UtilNodes=object, Naming=object)
import Nodes import Nodes
import ExprNodes import ExprNodes
import PyrexTypes import PyrexTypes
...@@ -17,15 +24,10 @@ from ParseTreeTransforms import SkipDeclarations ...@@ -17,15 +24,10 @@ from ParseTreeTransforms import SkipDeclarations
import codecs import codecs
try: try:
reduce from __builtin__ import reduce
except NameError: except ImportError:
from functools import reduce from functools import reduce
try:
set
except NameError:
from sets import Set as set
class FakePythonEnv(object): class FakePythonEnv(object):
"A fake environment for creating type test nodes etc." "A fake environment for creating type test nodes etc."
nogil = False nogil = False
......
...@@ -92,6 +92,7 @@ def compile_cython_modules(profile=False): ...@@ -92,6 +92,7 @@ def compile_cython_modules(profile=False):
"Cython.Compiler.Parsing", "Cython.Compiler.Parsing",
"Cython.Compiler.Visitor", "Cython.Compiler.Visitor",
"Cython.Compiler.ParseTreeTransforms", "Cython.Compiler.ParseTreeTransforms",
"Cython.Compiler.Optimize",
"Cython.Runtime.refnanny"] "Cython.Runtime.refnanny"]
extensions = [] extensions = []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment