lol

rustPlatform.maturinBuildHook: specify the output directory (#291025)

authored by

Dmitry Kalinkin and committed by
GitHub
fbd21c50 67b4bf1d

+4 -4
+4 -4
pkgs/build-support/rust/hooks/maturin-build-hook.sh
··· 3 4 runHook preBuild 5 6 if [ ! -z "${buildAndTestSubdir-}" ]; then 7 pushd "${buildAndTestSubdir}" 8 fi ··· 16 --manylinux off \ 17 --strip \ 18 --release \ 19 ${maturinBuildFlags-} 20 ) 21 22 if [ ! -z "${buildAndTestSubdir-}" ]; then 23 popd 24 fi 25 - 26 - # Move the wheel to dist/ so that regular Python tooling can find it. 27 - mkdir -p dist 28 - mv ${cargoRoot:+$cargoRoot/}target/wheels/*.whl dist/ 29 30 # These are python build hooks and may depend on ./dist 31 runHook postBuild
··· 3 4 runHook preBuild 5 6 + # Put the wheel to dist/ so that regular Python tooling can find it. 7 + local dist="$PWD/dist" 8 + 9 if [ ! -z "${buildAndTestSubdir-}" ]; then 10 pushd "${buildAndTestSubdir}" 11 fi ··· 19 --manylinux off \ 20 --strip \ 21 --release \ 22 + --out "$dist" \ 23 ${maturinBuildFlags-} 24 ) 25 26 if [ ! -z "${buildAndTestSubdir-}" ]; then 27 popd 28 fi 29 30 # These are python build hooks and may depend on ./dist 31 runHook postBuild