From 910441c0e4a7ba606ff41ccee3e8098c4e00b88a Mon Sep 17 00:00:00 2001 From: Jamie Alexandre Date: Mon, 2 Aug 2021 20:43:14 -0700 Subject: [PATCH] Patch Django to allow pyc migrations, as p4a deletes the originals --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 1d7cb72c..65adc06e 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,8 @@ deepclean: clean src/kolibri: clean rm -r src/kolibri 2> /dev/null || true unzip -qo "whl/kolibri*.whl" "kolibri/*" -x "kolibri/dist/cext*" -d src/ + # patch Django to allow migrations to be pyc files, as p4a compiles and deletes the originals + sed -i 's/if name.endswith(".py"):/if name.endswith(".py") or name.endswith(".pyc"):/g' src/kolibri/dist/django/db/migrations/loader.py ./delete_kolibri_blacklist.sh # Generate the project info file