mirror of https://gitlab.com/ita1024/waf.git
cleanup
This commit is contained in:
parent
a80d9e936f
commit
4b3a288566
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue