-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for compiled .so files in crowd_anki/dist
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |