Skip to content

Commit 0994ae9

Browse files
committed
toolchain: cache cythonize step (we should use cache more)
1 parent 3e3bc32 commit 0994ae9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythonforandroid/toolchain.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,6 +1819,7 @@ def clean_build(self, arch=None):
18191819
strange results. Rebuild everything if this seems to happen.
18201820
18211821
'''
1822+
self.ctx.state.remove_all(self.name)
18221823
if arch is None:
18231824
dir = join(self.ctx.build_dir, 'other_builds', self.name)
18241825
else:
@@ -2042,6 +2043,7 @@ def build_arch(self, arch):
20422043
self.build_cython_components(arch)
20432044
self.install_python_package()
20442045

2046+
@cache_execution
20452047
def build_cython_components(self, arch):
20462048
# AND: Should we use tito's cythonize methods? How do they work?
20472049
info('Cythonizing anything necessary in {}'.format(self.name))

0 commit comments

Comments
 (0)