import Naming
import Options
-from Pyrex.Utils import open_new_file
+from Cython.Utils import open_new_file
from PyrexTypes import py_object_type, typecast
class CCodeWriter:
#
import sys
-from Pyrex.Utils import open_new_file
+from Cython.Utils import open_new_file
class PyrexError(Exception):
import Symtab
import Options
-from Pyrex.Debugging import print_call_chain
+from Cython.Debugging import print_call_chain
from DebugFlags import debug_disposal_code, debug_temp_alloc, \
debug_coercion
string_prefixes = "cCrR"
def make_lexicon():
- from Pyrex.Plex import \
+ from Cython.Plex import \
Str, Any, AnyBut, AnyChar, Rep, Rep1, Opt, Bol, Eol, Eof, \
TEXT, IGNORE, State, Lexicon
from Scanning import Method
import Parsing
from Symtab import BuiltinScope, ModuleScope
import Code
-from Pyrex.Utils import replace_suffix
+from Cython.Utils import replace_suffix
verbose = 0
output_file = None)
if sys.platform == "mac":
- from Pyrex.Mac.MacSystem import c_compile, c_link, CCompilerError
+ from Cython.Mac.MacSystem import c_compile, c_link, CCompilerError
default_options.use_listing_file = 1
elif sys.platform == "darwin":
- from Pyrex.Mac.DarwinSystem import c_compile, c_link, CCompilerError
+ from Cython.Mac.DarwinSystem import c_compile, c_link, CCompilerError
else:
c_compile = None
c_link = None
from Errors import error
from PyrexTypes import py_object_type
-from Pyrex.Utils import open_new_file, replace_suffix
+from Cython.Utils import open_new_file, replace_suffix
class ModuleNode(Nodes.Node, Nodes.BlockNode):
# doc string or None
from PyrexTypes import py_object_type, error_type, CTypedefType
from Symtab import ModuleScope, LocalScope, \
StructOrUnionScope, PyClassScope, CClassScope
-from Pyrex.Utils import open_new_file, replace_suffix
+from Cython.Utils import open_new_file, replace_suffix
import Options
from DebugFlags import debug_disposal_code
from time import time
from Pyrex import Plex
-from Pyrex.Plex import Scanner
-from Pyrex.Plex.Errors import UnrecognizedInput
+from Cython.Plex import Scanner
+from Cython.Plex.Errors import UnrecognizedInput
from Errors import CompileError, error
from Lexicon import string_prefixes, make_lexicon
class InternalMethodSlot(SlotDescriptor):
# Type slot descriptor for a method which is always
- # synthesized by Pyrex.
+ # synthesized by Cython.
#
# slot_name string Member name of the slot in the type object
#
# Descriptors for special methods which don't appear directly
# in the type object or its substructures. These methods are
-# called from slot functions synthesized by Pyrex.
+# called from slot functions synthesized by Cython.
#
#------------------------------------------------------------------------------------------
# Pyrex is (c) Greg Ewing.
import distutils.command.build_ext
-#import Pyrex.Compiler.Main
-from Pyrex.Compiler.Main import CompilationOptions, default_options, compile
-from Pyrex.Compiler.Errors import PyrexError
+#import Cython.Compiler.Main
+from Cython.Compiler.Main import CompilationOptions, default_options, compile
+from Cython.Compiler.Errors import PyrexError
from distutils.dep_util import newer
import os
import sys
gcc_all_warnings = True
import os
-from Pyrex.Utils import replace_suffix
-from Pyrex.Compiler.Errors import PyrexError
+from Cython.Utils import replace_suffix
+from Cython.Compiler.Errors import PyrexError
py_include_dirs = [
"/Library/Frameworks/Python.framework/Headers"
import aetools
from aetools import TalkTo
from StdSuites.Standard_Suite import Standard_Suite_Events as Standard_Suite
-from Pyrex.Utils import replace_suffix
-from Pyrex.Compiler.Errors import PyrexError
+from Cython.Utils import replace_suffix
+from Cython.Compiler.Errors import PyrexError
c_compiler = "MWCPPC"
c_optimizations = "off"
gcc_all_warnings = True
import os
-from Pyrex.Utils import replace_suffix
-from Pyrex.Compiler.Errors import PyrexError
+from Cython.Utils import replace_suffix
+from Cython.Compiler.Errors import PyrexError
version = "%s.%s" % sys.version[:2]
py_include_dirs = [