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') ```
This commit is contained in:
parent
67bbf2c845
commit
5c8df2235a
@ -370,7 +370,7 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
|
|
||||||
# Add CPython specific setup-hook that configures distutils.sysconfig to
|
# Add CPython specific setup-hook that configures distutils.sysconfig to
|
||||||
# always load sysconfigdata from host Python.
|
# always load sysconfigdata from host Python.
|
||||||
postFixup = ''
|
postFixup = stdenv.lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
|
||||||
cat << "EOF" >> "$out/nix-support/setup-hook"
|
cat << "EOF" >> "$out/nix-support/setup-hook"
|
||||||
${sysconfigdataHook}
|
${sysconfigdataHook}
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user