From 6f73b4280958f5d3f5fa77c3a4ed19b277784140 Mon Sep 17 00:00:00 2001 From: Alexey Borzenkov Date: Wed, 22 Dec 2010 10:45:20 +0300 Subject: [PATCH] Fix --pyrex-c-in-temp compiling package1/module.pyx and package2/module.pyx --- Cython/Distutils/build_ext.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cython/Distutils/build_ext.py b/Cython/Distutils/build_ext.py index 4faba587..94673633 100644 --- a/Cython/Distutils/build_ext.py +++ b/Cython/Distutils/build_ext.py @@ -226,6 +226,8 @@ class build_ext(_build_ext.build_ext): if not self.inplace and (self.pyrex_c_in_temp or getattr(extension, 'pyrex_c_in_temp', 0)): target_dir = os.path.join(self.build_temp, "pyrex") + for package_name in extension.name.split('.')[:-1]: + target_dir = os.path.join(target_dir, package_name) else: target_dir = None -- 2.26.2