projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b43f682
)
Fix --pyrex-c-in-temp compiling package1/module.pyx and package2/module.pyx
author
Alexey Borzenkov
<snaury@gmail.com>
Wed, 22 Dec 2010 07:45:20 +0000
(10:45 +0300)
committer
Alexey Borzenkov
<snaury@gmail.com>
Wed, 22 Dec 2010 07:45:20 +0000
(10:45 +0300)
Cython/Distutils/build_ext.py
patch
|
blob
|
history
diff --git
a/Cython/Distutils/build_ext.py
b/Cython/Distutils/build_ext.py
index 4faba58795d5f712cbe247077c49463d628b6f23..94673633a87a78f87b4bfe39b2b8e91954fe6530 100644
(file)
--- 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