Permalink
Browse files

Fix --pyrex-c-in-temp compiling package1/module.pyx and package2/modu…

…le.pyx
  • Loading branch information...
1 parent b43f682 commit 6f73b4280958f5d3f5fa77c3a4ed19b277784140 @snaury committed Dec 22, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 Cython/Distutils/build_ext.py
@@ -226,6 +226,8 @@ def cython_sources(self, sources, extension):
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

0 comments on commit 6f73b42

Please sign in to comment.