From 91aeda143254e3dacc075d6860fa0058578614a6 Mon Sep 17 00:00:00 2001 From: Averell Dalton Date: Tue, 22 Jan 2019 22:46:59 +0100 Subject: [PATCH] python: sysconfig: fix paths --- pkgs/development/interpreters/python/cpython/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 1b4a5e751377..ed6c8c9893b4 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -209,8 +209,8 @@ in with passthru; stdenv.mkDerivation { done # Further get rid of references. https://github.com/NixOS/nixpkgs/issues/51668 - find $out/lib/python*/config-* -type f -print -exec nuke-refs '{}' + - find $out/lib -name '_sysconfigdata*.py*' -print -exec nuke-refs '{}' + + find $out/lib/python*/config-* -type f -print -exec nuke-refs -e $out '{}' + + find $out/lib -name '_sysconfigdata*.py*' -print -exec nuke-refs -e $out '{}' + # Determinism: rebuild all bytecode # We exclude lib2to3 because that's Python 2 code which fails