python312Packages.contourpy: fix cross compilation
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
python,
|
||||
pythonOlder,
|
||||
|
||||
# build
|
||||
@@ -39,6 +40,12 @@ let
|
||||
hash = "sha256-Qd6FC7SgFyC/BvOPWVkr2ZfKVMVAknLlidNRq3zcWU0=";
|
||||
};
|
||||
|
||||
# prevent unnecessary references to the build python when cross compiling
|
||||
postPatch = ''
|
||||
substituteInPlace lib/contourpy/util/_build_config.py.in \
|
||||
--replace-fail '@python_path@' "${python.interpreter}"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
meson-python
|
||||
|
||||
Reference in New Issue
Block a user