aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/deploy_lib/__init__.py
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2023-10-24 16:10:56 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-02-29 10:32:54 +0100
commitec6a0f8baef5c6d4e80e650e11a498756e6055e6 (patch)
treed4f0c4ba59ae239a8841ac68683da58e5e0dd440 /sources/pyside-tools/deploy_lib/__init__.py
parent489899819f4b417f8bc8923b1eb03728bed4bb5e (diff)
Deployment: Refactoring
- Functions in buildozer.py for finding the local_libs, plugin and Qt module dependencies of the application are related to the overall config of the application and not buildozer. Hence, these functions are moved to android_config.py. - `ALL_PYSIDE_MODULES` moved to a function under deploy_lib/__init__.py and `platform_map` moved to deploy_lib/android/__init__.py. - Enable the user to pass both arm64-v8a and aarch64 as the architecture type. Same for all the other architecures that are synonymous. - `verify_and_set_recipe_dir()` is now called explicitly from android_deploy.py due to `cleanup()` deleting the recipe directories during config initialization. - New property `dependency_files` for AndroidConfig class. - Fix --dry-run for Android Deployment. - Adapt tests. Pick-to: 6.6 Task-number: PYSIDE-1612 Change-Id: Icdf14001ae2b07dc8614af3f458f9cad11eafdac Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside-tools/deploy_lib/__init__.py')
-rw-r--r--sources/pyside-tools/deploy_lib/__init__.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/sources/pyside-tools/deploy_lib/__init__.py b/sources/pyside-tools/deploy_lib/__init__.py
index 8c5d8b4ef..40a7535db 100644
--- a/sources/pyside-tools/deploy_lib/__init__.py
+++ b/sources/pyside-tools/deploy_lib/__init__.py
@@ -17,7 +17,18 @@ else:
DEFAULT_APP_ICON = str((Path(__file__).parent / f"pyside_icon{IMAGE_FORMAT}").resolve())
-from .commands import run_command
+
+def get_all_pyside_modules():
+ """
+ Returns all the modules installed with PySide6
+ """
+ # They all start with `Qt` as the prefix. Removing this prefix and getting the actual
+ # module name
+ import PySide6
+ return [module[2:] for module in PySide6.__all__]
+
+
+from .commands import run_command, run_qmlimportscanner
from .nuitka_helper import Nuitka
from .python_helper import PythonExecutable, find_pyside_modules
from .config import BaseConfig, Config