diff options
Diffstat (limited to 'pkgs/development/interpreters/python/manylinux/default.nix')
-rw-r--r-- | pkgs/development/interpreters/python/manylinux/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/development/interpreters/python/manylinux/default.nix b/pkgs/development/interpreters/python/manylinux/default.nix index 428e04f4f92..a44ead23752 100644 --- a/pkgs/development/interpreters/python/manylinux/default.nix +++ b/pkgs/development/interpreters/python/manylinux/default.nix @@ -33,8 +33,10 @@ let fi ''; + getLibOutputs = lib.mapAttrs (k: v: lib.getLib v); + # https://www.python.org/dev/peps/pep-0599/ - manylinux2014Libs = with pkgs; { + manylinux2014Libs = getLibOutputs(with pkgs; { "libgcc_s.so.1" = glibc; "libstdc++.so.6" = stdenv.cc.cc; "libm.so.6" = glibc; @@ -54,17 +56,18 @@ let "libgobject-2.0.so.0" = glib; "libgthread-2.0.so.0" = glib; "libglib-2.0.so.0" = glib; - }; + }); # https://www.python.org/dev/peps/pep-0571/ manylinux2010Libs = manylinux2014Libs; # https://www.python.org/dev/peps/pep-0513/ - manylinux1Libs = manylinux2010Libs // (with pkgs; { + manylinux1Libs = getLibOutputs(manylinux2010Libs // (with pkgs; { "libpanelw.so.5" = ncurses5; "libncursesw.so.5" = ncurses5; "libcrypt.so.1" = glibc; - }); + })); + in { # List of libraries that are needed for manylinux compatibility. # When using a wheel that is manylinux1 compatible, just extend |