From 335430a9a637cbea721e4b30f319d278412659ef Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 3 Jan 2020 15:47:15 +1000 Subject: [PATCH] add build hash to generated wheels ensures devel builds always get reinstalled, since they don't match the declared version in the wheel --- build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build b/build index d3fac8e26..af2421d4a 100755 --- a/build +++ b/build @@ -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)