Skip to content

Commit

Permalink
Patch Django to allow pyc migrations, as p4a deletes the originals
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalex committed Aug 3, 2021
1 parent 73b4a8b commit 910441c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 910441c

Please sign in to comment.