Merge pull request #243859 from blaggacao/fix-maturin-hook-with-python-hooks

This commit is contained in:
figsoda
2023-07-17 23:16:34 -04:00
committed by GitHub
2 changed files with 4 additions and 8 deletions
@@ -24,8 +24,6 @@ maturinBuildHook() {
${maturinBuildFlags-}
)
runHook postBuild
if [ ! -z "${buildAndTestSubdir-}" ]; then
popd
fi
@@ -34,6 +32,9 @@ maturinBuildHook() {
mkdir -p dist
mv target/wheels/*.whl dist/
# These are python build hooks and may depend on ./dist
runHook postBuild
echo "Finished maturinBuildHook"
}
@@ -29,13 +29,8 @@ buildPythonPackage rec {
maturinBuildHook
]);
preBuild = ''
cd synapse
'';
buildAndTestSubdir = "synapse";
postBuild = ''
cd ..
'';
pythonImportsCheck = [ "matrix_http_rendezvous_synapse" ];