From 5c8df2235a4b0752114dcf93840dec1655c5ce8f Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 7 Jan 2021 14:38:48 +0100 Subject: [PATCH] python3: don't use sysconfigdataHook on darwin Resolves issue when building wheels which is a regression introduced by 1a65c5df5f98 ``` AssertionError: would build wheel with unsupported tag ('cp38', 'cp38', 'darwin_x86_64') ``` --- pkgs/development/interpreters/python/cpython/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index f18fe181a7b0..525ef8c1c6d9 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -370,7 +370,7 @@ in with passthru; stdenv.mkDerivation { # Add CPython specific setup-hook that configures distutils.sysconfig to # always load sysconfigdata from host Python. - postFixup = '' + postFixup = stdenv.lib.optionalString (!stdenv.hostPlatform.isDarwin) '' cat << "EOF" >> "$out/nix-support/setup-hook" ${sysconfigdataHook} EOF