Merge pull request #243859 from blaggacao/fix-maturin-hook-with-python-hooks
This commit is contained in:
@@ -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" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user