|
18 | 18 | download_android_ndk, install_android_packages) |
19 | 19 |
|
20 | 20 | # Note: Does not work with PyEnv. Your Host Python should contain openssl. |
21 | | -PYTHON_VERSION = "3.10" |
| 21 | +PYTHON_VERSION = "3.11" |
22 | 22 |
|
23 | 23 | SKIP_UPDATE_HELP = ("skip the updation of SDK packages build-tools, platform-tools to" |
24 | 24 | " latest version") |
@@ -86,7 +86,7 @@ def update(self, op_code, cur_count, max_count=None, message=""): |
86 | 86 |
|
87 | 87 | parser.add_argument("-v", "--verbose", help="run in verbose mode", action="store_const", |
88 | 88 | dest="loglevel", const=logging.INFO) |
89 | | - parser.add_argument("--api-level", type=str, default="31", help="Android API level to use") |
| 89 | + parser.add_argument("--api-level", type=str, default="33", help="Android API level to use") |
90 | 90 | parser.add_argument("--ndk-path", type=str, help="Path to Android NDK (Preferred r25c)") |
91 | 91 | # sdk path is needed to compile all the Qt Java Acitivity files into Qt6AndroidBindings.jar |
92 | 92 | parser.add_argument("--sdk-path", type=str, help="Path to Android SDK") |
@@ -221,6 +221,7 @@ def update(self, op_code, cur_count, max_count=None, message=""): |
221 | 221 | ndk_path=ndk_path, |
222 | 222 | api_level=platform_data.api_level, |
223 | 223 | android_py_install_path_prefix=pyside6_deploy_cache, |
| 224 | + host_python_path=sys.executable |
224 | 225 | ) |
225 | 226 |
|
226 | 227 | logging.info(f"Writing Python cross compile script into {python_ccompile_script}") |
@@ -295,5 +296,5 @@ def update(self, op_code, cur_count, max_count=None, message=""): |
295 | 296 | f"--python-target-path={python_path}", |
296 | 297 | (f"--qt-target-path={qt_install_path}/" |
297 | 298 | f"android_{platform_data.qt_plat_name}"), |
298 | | - "--no-qt-tools", "--unity"] |
| 299 | + "--no-qt-tools", "--unity", "--module-subset=Core,Gui,Widgets"] |
299 | 300 | run_command(qfp_ccompile_cmd, cwd=pyside_setup_dir, dry_run=dry_run, show_stdout=True) |
0 commit comments