set py2_import directive so imports in Cython source code not forced to absolute
authorHaoyu Bai <baihaoyu@gmail.com>
Sat, 2 Apr 2011 00:00:41 +0000 (08:00 +0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sat, 16 Apr 2011 07:36:29 +0000 (00:36 -0700)
Cython/Compiler/Code.py
Cython/Compiler/Lexicon.py
Cython/Compiler/Parsing.py
Cython/Compiler/Scanning.py

index c70318a2fa1baf2d011196716ad80afb1e49b374..847753913c382e718b00a5d27c2fbbbe0d19d2bd 100644 (file)
@@ -1,4 +1,4 @@
-# cython: language_level = 3
+# cython: language_level = 3, py2_import=True
 #
 #   Pyrex - Code output module
 #
index ad736df130f12d153373abd8aa58faa7571db3e5..35843851bc9eceb2db3e8b49b8a6834597b872fc 100644 (file)
@@ -1,4 +1,4 @@
-# cython: language_level=3
+# cython: language_level=3, py2_import=True
 #
 #   Cython Scanner - Lexical Definitions
 #
index 6aab2f84438ce3607b7e7487dc7a775838a18777..7490e15db6f55ee7d2bf66c94b9cbc91910c41fe 100644 (file)
@@ -1,4 +1,4 @@
-# cython: auto_cpdef=True, infer_types=True, language_level=3
+# cython: auto_cpdef=True, infer_types=True, language_level=3, py2_import=True
 #
 #   Pyrex Parser
 #
index 608bcb1501f1354476f8006a1dc6e84c06b076d1..2a79d945daccd61a1a4034b2bd150c6300baf5a0 100644 (file)
@@ -1,4 +1,4 @@
-# cython: infer_types=True, language_level=3
+# cython: infer_types=True, language_level=3, py2_import=True
 #
 #   Cython Scanner
 #