Commit 895300c6 authored by Martin Quarda's avatar Martin Quarda

Recompiles source even only .pxd file change (if exist)

parent c96ff78f
......@@ -291,6 +291,8 @@ class build_ext(_build_ext.build_ext):
for source in cython_sources:
target = cython_targets[source]
depends = [source] + list(extension.depends or ())
if(source[-4:].lower()==".pyx" and os.path.isfile(source[:-3]+"pxd")):
depends += [source[:-3]+"pxd"]
rebuild = self.force or newer_group(depends, target, 'newer')
if not rebuild and newest_dependency is not None:
rebuild = newer(newest_dependency, target)
......
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