baserow/baserow_enterprise: ensure that we have __init__.py everywhere

This commit is contained in:
Luke Granger-Brown 2023-01-15 02:44:42 +00:00
parent cf74005139
commit dbafabb5f4

View file

@ -49,6 +49,17 @@ let
baserow-enterprise-backend = enterprise.baserow-enterprise-backend.overridePythonAttrs (_: {
inherit version;
src = "${src}/enterprise/backend";
postPatch = ''
pushd src/baserow_enterprise
find . -name '*.py' -printf '%h\n' | sort | uniq | while read pydir; do
thisdir=$pydir
while [[ "$thisdir" != "." ]]; do
test -f $thisdir/__init__.py || touch $thisdir/__init__.py
thisdir="$(dirname $thisdir)"
done
done
popd
'';
});
in
oss // (if !ossOnly then premium else {}) // {