rustPlatform.maturinBuildHook: fix postBuild hook to use ./dist contract

This commit is contained in:
David Arnold 2023-07-15 17:14:33 -05:00
parent 034c3854f0
commit b3d2765271
No known key found for this signature in database
GPG Key ID: 0318D822BAC965CC

View File

@ -24,8 +24,6 @@ maturinBuildHook() {
${maturinBuildFlags-} ${maturinBuildFlags-}
) )
runHook postBuild
if [ ! -z "${buildAndTestSubdir-}" ]; then if [ ! -z "${buildAndTestSubdir-}" ]; then
popd popd
fi fi
@ -34,6 +32,9 @@ maturinBuildHook() {
mkdir -p dist mkdir -p dist
mv target/wheels/*.whl dist/ mv target/wheels/*.whl dist/
# These are python build hooks and may depend on ./dist
runHook postBuild
echo "Finished maturinBuildHook" echo "Finished maturinBuildHook"
} }