Merge pull request #285391 from mpickering/wip/gdal-numpy-wrap

gdal: wrap executables in environment containing numpy
This commit is contained in:
Ivan Mincik 2024-02-14 13:05:42 +01:00 committed by GitHub
commit 2881b6b08f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -198,8 +198,9 @@ stdenv.mkDerivation (finalAttrs: {
++ darwinDeps
++ nonDarwinDeps;
pythonPath = [ python3.pkgs.numpy ];
postInstall = ''
wrapPythonPrograms
wrapPythonProgramsIn "$out/bin" "$out $pythonPath"
'' + lib.optionalString useJava ''
cd $out/lib
ln -s ./jni/libgdalalljni${stdenv.hostPlatform.extensions.sharedLibrary}