File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,7 @@ def darwin_installer(self):
215
215
info (f"Setting JAVA_HOME to { jdk_path } " )
216
216
os .environ ["JAVA_HOME" ] = jdk_path
217
217
218
-
219
- if __name__ == "__main__" :
218
+ def check_and_install_default_prerequisites ():
220
219
DEFAULT_PREREQUISITES = dict (darwin = [JDKPrerequisite ()], linux = [], all_platforms = [])
221
220
222
221
required_prerequisites = (
@@ -242,3 +241,6 @@ def darwin_installer(self):
242
241
prerequisite .show_helper ()
243
242
if prerequisite .install_is_supported ():
244
243
prerequisite .install ()
244
+
245
+ if __name__ == "__main__" :
246
+ check_and_install_default_prerequisites ()
Original file line number Diff line number Diff line change 13
13
RECOMMENDED_NDK_API , RECOMMENDED_TARGET_API , print_recommendations )
14
14
from pythonforandroid .util import BuildInterruptingException , load_source
15
15
from pythonforandroid .entrypoints import main
16
+ from pythonforandroid .prerequisites import check_and_install_default_prerequisites
16
17
17
18
18
19
def check_python_dependencies ():
@@ -65,7 +66,7 @@ def check_python_dependencies():
65
66
print ('python-for-android is exiting due to the errors logged above' )
66
67
exit (1 )
67
68
68
-
69
+ check_and_install_default_prerequisites ()
69
70
check_python_dependencies ()
70
71
71
72
You can’t perform that action at this time.
0 commit comments