mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
rustPlatform.maturinBuildHook: specify the output directory (#291025)
This commit is contained in:
parent
67b4bf1df4
commit
fbd21c5067
@ -3,6 +3,9 @@ maturinBuildHook() {
|
||||
|
||||
runHook preBuild
|
||||
|
||||
# Put the wheel to dist/ so that regular Python tooling can find it.
|
||||
local dist="$PWD/dist"
|
||||
|
||||
if [ ! -z "${buildAndTestSubdir-}" ]; then
|
||||
pushd "${buildAndTestSubdir}"
|
||||
fi
|
||||
@ -16,6 +19,7 @@ maturinBuildHook() {
|
||||
--manylinux off \
|
||||
--strip \
|
||||
--release \
|
||||
--out "$dist" \
|
||||
${maturinBuildFlags-}
|
||||
)
|
||||
|
||||
@ -23,10 +27,6 @@ maturinBuildHook() {
|
||||
popd
|
||||
fi
|
||||
|
||||
# Move the wheel to dist/ so that regular Python tooling can find it.
|
||||
mkdir -p dist
|
||||
mv ${cargoRoot:+$cargoRoot/}target/wheels/*.whl dist/
|
||||
|
||||
# These are python build hooks and may depend on ./dist
|
||||
runHook postBuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user