buildPython hooks: format with shfmt

This commit is contained in:
Yueh-Shun Li
2024-09-10 23:15:40 +08:00
parent 7ba9e4244b
commit 57c2e5683d
14 changed files with 52 additions and 53 deletions
@@ -8,7 +8,7 @@ pythonNamespacesHook() {
echo "Enforcing PEP420 namespace: ${namespace}"
# split namespace into segments. "azure.mgmt" -> "azure mgmt"
IFS='.' read -ra pathSegments <<< $namespace
IFS='.' read -ra pathSegments <<<$namespace
constructedPath=$out/@pythonSitePackages@
# Need to remove the __init__.py at each namespace level
@@ -49,4 +49,3 @@ pythonNamespacesHook() {
if [ -z "${dontUsePythonNamespacesHook-}" -a -n "${pythonNamespaces-}" ]; then
postFixupHooks+=(pythonNamespacesHook)
fi