diff options
author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2023-02-08 16:58:39 +0100 |
---|---|---|
committer | Shyamnath Premnadh <shyamnath.premnadh@qt.io> | 2023-03-31 13:29:32 +0200 |
commit | 95abfa776411b6d7cd4296adf63bc7abce2270b6 (patch) | |
tree | 74e51c8c6d28044a60011158215919ab223d6fa5 /create_wheels.py | |
parent | 94b30c7207bea2467f0d7e41e99af27ecc749ed5 (diff) |
Deployment: New pyside6-android-deploy tool
- Preliminary support for PySide6 Android deployment
- Uses jinja2 to create PySide6 and shiboken6 recipes, to be used
by buildozer when python_for_android builds the app distribution
- Classes for Buildozer config interaction
- Run deployment to android. Typical command looks like:
"""
pyside6-android-deploy
--wheel-pyside=./PySide6-6.5.0a1-6.5.0-cp37-abi3-android_x86_64.whl
--wheel-shiboken=./shiboken6-6.5.0a1-6.5.0-cp37-abi3-android_x86_64.whl
--name=stringlistmodel
"""
- New entrypoint for pyside6-android-deploy
- Helper functinos for Android Deployment
- Remove unused function main_py_exists()
- Added the new files to deploy.pyproject
- Remove dry_run argument from install_python_dependencies()
- new Python packages added in requirements.txt to enable the
deploy and cross compile tool
Note: python-for-android uses my local fork. This will be changed
once it is merged into python-for-android dev.
Task-number: PYSIDE-1612
Pick-to: 6.5
Change-Id: I7eb96fa5507a476b4e86ec0195a5e9869f0f85fd
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'create_wheels.py')
-rw-r--r-- | create_wheels.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/create_wheels.py b/create_wheels.py index a56fb4957..5fd99d2aa 100644 --- a/create_wheels.py +++ b/create_wheels.py @@ -194,8 +194,17 @@ def wheel_shiboken_module() -> Tuple[SetupData, None]: def wheel_pyside6_essentials(packaged_qt_tools_path: Path) -> Tuple[SetupData, List[ModuleData]]: _pyside_tools = available_pyside_tools(packaged_qt_tools_path, package_for_wheels=True) - _console_scripts = [f"pyside6-{tool} = PySide6.scripts.pyside_tool:{tool}" - for tool in _pyside_tools] + + # replacing pyside6-android_deploy by pyside6-android-deploy for consistency + # Also, the tool should not exist in any other platform than Linux + _console_scripts = [] + if ("android_deploy" in _pyside_tools) and sys.platform.startswith("linux"): + _console_scripts = ["pyside6-android-deploy = PySide6.scripts.pyside_tool:android_deploy"] + _pyside_tools.remove("android_deploy") + + _console_scripts.extend([f"pyside6-{tool} = PySide6.scripts.pyside_tool:{tool}" + for tool in _pyside_tools]) + setup = SetupData( name="PySide6_Essentials", version=get_version_from_package("PySide6"), # we use 'PySide6' here |