pythonPackages.shapely: fix patchPhase

This commit is contained in:
Lancelot SIX 2017-10-09 22:15:17 +02:00
parent f2ce15be9d
commit 953ce94826
No known key found for this signature in database
GPG Key ID: 02E1542BA66FB047

View File

@ -27,7 +27,7 @@ buildPythonPackage rec {
libc = if stdenv.isDarwin then "libc.dylib" else "libc.so.6";
in ''
sed -i "s|_lgeos = load_dll('geos_c', fallbacks=.*)|_lgeos = load_dll('geos_c', fallbacks=['${geos}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}'])|" shapely/geos.py
sed -i "s|free = load_dll('c').free|free = load_dll('c', fallbacks=['${stdenv.cc.libc}/lib/${stdenv.cc.libc}']).free|" shapely/geos.py
sed -i "s|free = load_dll('c').free|free = load_dll('c', fallbacks=['${stdenv.cc.libc}/lib/${libc}']).free|" shapely/geos.py
'';
# tests/test_voctorized fails because the vectorized extension is not