Skip to content

Commit

Permalink
Check for compiled .so files in crowd_anki/dist
Browse files Browse the repository at this point in the history
  • Loading branch information
aplaice committed May 18, 2023
1 parent 7317130 commit 26f1ba8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fetch_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/usr/bin/env bash

pipenv run pip install --upgrade --no-binary :all: -r <(pipenv requirements | sed -E "s/(^dulwich==.+$)/\1 --global-option=--pure/") --target crowd_anki/dist

# Check for Linux shared object files. This won't work on Windows and might not work on MacOS.
if [ ! "$(find crowd_anki/dist/ -name '*.so')" == "" ]
then
echo "Found compiled .so file. Build is not pure python!"
exit 1
fi

0 comments on commit 26f1ba8

Please sign in to comment.