1 # shellcheck shell=bash disable=SC2154,SC2164
4 echo "Executing maturinBuildHook"
8 # Put the wheel to dist/ so that regular Python tooling can find it.
11 if [ -n "${buildAndTestSubdir-}" ]; then
12 pushd "${buildAndTestSubdir}"
16 "--jobs=$NIX_BUILD_CORES"
18 "--target" "@rustTargetPlatformSpec@"
25 concatTo flagsArray maturinBuildFlags
27 echoCmd
'maturinBuildHook flags' "${flagsArray[@]}"
28 @setEnv@ maturin build
"${flagsArray[@]}"
30 if [ -n "${buildAndTestSubdir-}" ]; then
34 # These are python build hooks and may depend on ./dist
37 echo "Finished maturinBuildHook"
40 buildPhase
=maturinBuildHook