From 26f1ba8864fd93822fb1518d0e94d95abe7b210a Mon Sep 17 00:00:00 2001 From: Adam Plaice Date: Thu, 18 May 2023 17:35:37 +0200 Subject: [PATCH] Check for compiled .so files in crowd_anki/dist --- fetch_dependencies.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fetch_dependencies.sh b/fetch_dependencies.sh index 2e4eeca..845c91f 100755 --- a/fetch_dependencies.sh +++ b/fetch_dependencies.sh @@ -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