This commit is contained in:
Thomas Nagy 2012-05-30 00:00:49 +02:00
parent a80d9e936f
commit 4b3a288566
1 changed files with 4 additions and 4 deletions

View File

@ -24,14 +24,14 @@ class cython(cython_base):
return ret
def run(self):
if not self.env.CYTHON:
for (x, y) in zip(self.outputs, self.cython_cache_outputs):
x.write(y.read('rb'), 'wb')
else:
if self.env.CYTHON:
ret = cython_base.run(self)
if not ret:
for (x, y) in zip(self.outputs, self.cython_cache_outputs):
y.parent.mkdir()
y.write(x.read('rb'), 'wb')
return ret
else:
for (x, y) in zip(self.outputs, self.cython_cache_outputs):
x.write(y.read('rb'), 'wb')