Skip to content

Commit

Permalink
pythonPackages.shapely: fix patchPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
lsix committed Oct 9, 2017
1 parent f2ce15b commit 953ce94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/shapely/default.nix
Expand Up @@ -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
Expand Down

0 comments on commit 953ce94

Please sign in to comment.