aboutsummaryrefslogtreecommitdiffstats
path: root/build_scripts/utils.py
diff options
context:
space:
mode:
authorShyamnath Premnadh <[email protected]>2023-04-17 17:03:06 +0200
committerShyamnath Premnadh <[email protected]>2023-04-18 18:16:20 +0200
commita6c176fe8a48b8d5f5b7ffaa50b1bc8ab53321f2 (patch)
treec685c34ada4115f2266acc9a319537dbf546e323 /build_scripts/utils.py
parent5ee8cbc57c89c9242f93e58c8972448f817b6437 (diff)
Tooling: Simplify adding new tools
- Amends a48de6afbf127831aa46c1c006d777861bbbe9cb - Simplify the developer doc for adding new tools - Make build_scripts/__init__.py the primary place to add new tools for the build process Pick-to: 6.5 Change-Id: I1e8bd9e069471bf51a186c067773d7fbc2588769 Reviewed-by: Christian Tismer <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'build_scripts/utils.py')
-rw-r--r--build_scripts/utils.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/build_scripts/utils.py b/build_scripts/utils.py
index 335e0e16c..ef23b0f71 100644
--- a/build_scripts/utils.py
+++ b/build_scripts/utils.py
@@ -1146,10 +1146,13 @@ def available_pyside_tools(qt_tools_path: Path, package_for_wheels: bool = False
pyside_tools.extend([tool for tool in PYSIDE_UNIX_LIBEXEC_TOOLS
if tool_exist(lib_exec_path / tool)])
if sys.platform == 'darwin':
+ def name_to_path(name):
+ return f"{name.capitalize()}.app/Contents/MacOS/{name.capitalize()}"
+
pyside_tools.extend([tool for tool in PYSIDE_UNIX_BIN_TOOLS
if tool_exist(bin_path / tool)])
- pyside_tools.extend([tool_name for tool_name, tool_path in PYSIDE_UNIX_BUNDLED_TOOLS.items()
- if tool_exist(bin_path / tool_path)])
+ pyside_tools.extend([tool for tool in PYSIDE_UNIX_BUNDLED_TOOLS
+ if tool_exist(bin_path / name_to_path(tool))])
else:
pyside_tools.extend([tool for tool in PYSIDE_LINUX_BIN_TOOLS
if tool_exist(bin_path / tool)])