Commit 477aa1fa authored by Robert Bradshaw's avatar Robert Bradshaw

End-to-end fixes.

parent 4b20838a
...@@ -273,7 +273,7 @@ class DependencyTree(object): ...@@ -273,7 +273,7 @@ class DependencyTree(object):
cimports.update(a) cimports.update(a)
externs.update(b) externs.update(b)
else: else:
print "Unable to locate '%s' referenced from '%s'" % (filename, include) print("Unable to locate '%s' referenced from '%s'" % (filename, include))
return tuple(cimports), tuple(externs) return tuple(cimports), tuple(externs)
cimports_and_externs = cached_method(cimports_and_externs) cimports_and_externs = cached_method(cimports_and_externs)
...@@ -304,6 +304,7 @@ class DependencyTree(object): ...@@ -304,6 +304,7 @@ class DependencyTree(object):
if pxd: if pxd:
return pxd return pxd
return self.context.find_pxd_file(module, None) return self.context.find_pxd_file(module, None)
find_pxd = cached_method(find_pxd)
#@cached_method #@cached_method
def cimported_files(self, filename): def cimported_files(self, filename):
...@@ -429,7 +430,9 @@ def create_extension_list(patterns, ctx=None, aliases=None): ...@@ -429,7 +430,9 @@ def create_extension_list(patterns, ctx=None, aliases=None):
return module_list return module_list
# This is the user-exposed entry point. # This is the user-exposed entry point.
def cythonize(module_list, nthreads=0, aliases=None, **options): def cythonize(module_list, nthreads=0, aliases=None, **options):
if 'include_path' not in options:
options['include_path'] = ['.']
c_options = CompilationOptions(**options) c_options = CompilationOptions(**options)
cpp_options = CompilationOptions(**options); cpp_options.cplus = True cpp_options = CompilationOptions(**options); cpp_options.cplus = True
ctx = c_options.create_context() ctx = c_options.create_context()
......
...@@ -732,7 +732,7 @@ class EndToEndTest(unittest.TestCase): ...@@ -732,7 +732,7 @@ class EndToEndTest(unittest.TestCase):
.replace("PYTHON", sys.executable)) .replace("PYTHON", sys.executable))
try: try:
old_path = os.environ.get('PYTHONPATH') old_path = os.environ.get('PYTHONPATH')
os.environ['PYTHONPATH'] = os.path.join(self.cython_syspath, (old_path or '')) os.environ['PYTHONPATH'] = self.cython_syspath + os.pathsep + os.path.join(self.cython_syspath, (old_path or ''))
for command in commands.split('\n'): for command in commands.split('\n'):
if sys.version_info[:2] >= (2,4): if sys.version_info[:2] >= (2,4):
import subprocess import subprocess
......
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