anki/build
Damien Elmes 335430a9a6 add build hash to generated wheels
ensures devel builds always get reinstalled, since they don't match
the declared version in the wheel
2020-01-03 15:47:15 +10:00

18 lines
268 B
Bash
Executable File

#!/bin/bash
set -e
. scripts.inc
rm -rf dist
for dir in $DEVEL; do
echo $dir
(cd $dir && make build BUILDFLAGS="$BUILDFLAGS")
done
# add build hash to outputs
ver=$(cat meta/version)
hash=$(cat meta/buildhash)
(cd dist && rename "s/$ver/${ver}+$hash/" *.whl)