From: Alexey Borzenkov Date: Wed, 22 Dec 2010 07:45:20 +0000 (+0300) Subject: Fix --pyrex-c-in-temp compiling package1/module.pyx and package2/module.pyx X-Git-Tag: 0.14.1rc0~13^2~1^2 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6f73b4280958f5d3f5fa77c3a4ed19b277784140;p=cython.git Fix --pyrex-c-in-temp compiling package1/module.pyx and package2/module.pyx --- 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