add build hash to generated wheels

ensures devel builds always get reinstalled, since they don't match
the declared version in the wheel
This commit is contained in:
Damien Elmes 2020-01-03 15:47:15 +10:00
parent a898f61ddd
commit 335430a9a6

7
build
View File

@ -4,7 +4,14 @@ 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)