aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2023-12-08 11:04:30 +0100
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2023-12-08 12:08:26 +0100
commitc94e47c89697f569ea908ff2714ec56da0bc3458 (patch)
tree1edc7a9df81f4f8ec4c9e31c589b44c747f8d6ef /sources/pyside-tools
parent703db9cf09c1b0670cd423a0d418bf09e0e11b83 (diff)
Android Deployment: Install `buildozer` with --init cli argument
- When the --init option is used the config files are created, but to create buildozer.spec from pysideconfig.spec, buildozer has to be installed. This patch installs `buildozer` when --init option is passed. Task-number: PYSIDE-1612 Pick-to: 6.6 Change-Id: I6917496e509a0b4a203346145d1c3fe8dc73ba14 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside-tools')
-rw-r--r--sources/pyside-tools/deploy_lib/deploy_util.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/pyside-tools/deploy_lib/deploy_util.py b/sources/pyside-tools/deploy_lib/deploy_util.py
index 368ad682e..48e4951ea 100644
--- a/sources/pyside-tools/deploy_lib/deploy_util.py
+++ b/sources/pyside-tools/deploy_lib/deploy_util.py
@@ -89,14 +89,20 @@ def install_python_dependencies(config: Config, python: PythonExecutable, init:
"""
Installs the python package dependencies for the target deployment platform
"""
+ packages = config.get_value("python", packages).split(",")
if not init:
# install packages needed for deployment
logging.info("[DEPLOY] Installing dependencies")
- packages = config.get_value("python", packages).split(",")
python.install(packages=packages)
# nuitka requires patchelf to make patchelf rpath changes for some Qt files
if sys.platform.startswith("linux") and not is_android:
python.install(packages=["patchelf"])
+ elif is_android:
+ # install only buildozer
+ logging.info("[DEPLOY] Installing buildozer")
+ buildozer_package_with_version = ([package for package in packages
+ if package.startswith("buildozer")])
+ python.install(packages=list(buildozer_package_with_version))
def finalize(config: Config):