Skip to content

Commit af9d982

Browse files
committed
Fix crash for service_only's bootstrap on create_python_bundle
When building an apk for service_only's bootstrap using the testapp_service the build suddenly crash, because we don't installed any pure python package, so, the directory "python-install/<distribution directory>" doesn't exist. This makes p4a crash when we tried to enter into this directory.
1 parent 47e4b72 commit af9d982

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pythonforandroid/python.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ def create_python_bundle(self, dirn, arch):
358358

359359
# copy the site-packages into place
360360
ensure_dir(join(dirn, 'site-packages'))
361+
ensure_dir(self.ctx.get_python_install_dir())
361362
# TODO: Improve the API around walking and copying the files
362363
with current_directory(self.ctx.get_python_install_dir()):
363364
filens = list(walk_valid_filens(

0 commit comments

Comments
 (0)