Skip to content

Commit

Permalink
Merge pull request #83 from jamalex/master
Browse files Browse the repository at this point in the history
Patch Django to allow pyc migrations, as p4a deletes the originals
  • Loading branch information
jamalex authored Aug 3, 2021
2 parents 73b4a8b + 910441c commit 03f5e94
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 03f5e94

Please sign in to comment.