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 return ret
def run(self): def run(self):
if not self.env.CYTHON: if self.env.CYTHON:
for (x, y) in zip(self.outputs, self.cython_cache_outputs):
x.write(y.read('rb'), 'wb')
else:
ret = cython_base.run(self) ret = cython_base.run(self)
if not ret: if not ret:
for (x, y) in zip(self.outputs, self.cython_cache_outputs): for (x, y) in zip(self.outputs, self.cython_cache_outputs):
y.parent.mkdir() y.parent.mkdir()
y.write(x.read('rb'), 'wb') y.write(x.read('rb'), 'wb')
return ret return ret
else:
for (x, y) in zip(self.outputs, self.cython_cache_outputs):
x.write(y.read('rb'), 'wb')