baserow/baserow_enterprise: ensure that we have __init__.py everywhere
This commit is contained in:
parent
cf74005139
commit
dbafabb5f4
1 changed files with 11 additions and 0 deletions
|
@ -49,6 +49,17 @@ let
|
||||||
baserow-enterprise-backend = enterprise.baserow-enterprise-backend.overridePythonAttrs (_: {
|
baserow-enterprise-backend = enterprise.baserow-enterprise-backend.overridePythonAttrs (_: {
|
||||||
inherit version;
|
inherit version;
|
||||||
src = "${src}/enterprise/backend";
|
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
|
in
|
||||||
oss // (if !ossOnly then premium else {}) // {
|
oss // (if !ossOnly then premium else {}) // {
|
||||||
|
|
Loading…
Reference in a new issue