-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable coreutils on M1 Apple Silicon with arm64 #2020
Disable coreutils on M1 Apple Silicon with arm64 #2020
Conversation
Could you please showcase the problem that this is intended to fix -- with diagnostic info as per the issue template? |
@native-api |
Thank you. I see that the problem is in
I also see that the release 3.9.3 has been recalled due to having introduced an unexpected incompatibility so we should probably remove it, too.
|
Thank you.
The results are as follows.
I uploaded log to my gist.
I tried to install the following versions but it failed. |
Okay. The core reason is an old So we can selectively apply this workaroud to 3.9.1+ and 3.8.10+ only. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you change the logic to only selectively apply to the affected versions in the affected scenarios?
E.g. call this fuction not from general logic but from specific formulae.
Another option is to instead patch the |
Thanks for your investigation and advices. |
I've made some refinements. Please check that all the changed scripts work on an Apple M1. |
Thanks for your refinements. |
This reverts commit 90d0d20.
) This reverts commit 90d0d20. After further consideration, we've decided to remove this workaround: * It only has an effect if the user has added `gnubin` from Homebrew Coreutils to PATH which is an unsupported setup * It was intended to be applied only to a few select 3.8 and 3.9 versions that officially support Apple Silicon and only fail with Homebrew Coreutils in PATH because they have `config.*` from a too old version of Autoconf that doesn't support the Arm64 arch -- but * CPython devs [didn't actually fix the problem in 3.10, either, only in 3.11](#2157 (comment)), so we'd need to apply it to all 3.10 releases, too * users started pushing this workaround into other unrelated branches because they were using the above unsupported setup. See #2190 (review) for discussion.
Make sure you have checked all steps below.
Prerequisite
Description
pyenv install
on M1 Apple Silicon with arm64.pyenv install
does not reference the commands of coreutils.$(brew --prefix coreutils)/libexec/gnubin
, overrides native path of commands included in coreutils.g*
.Problem
PYENV_DEBUG=1
, e.g.env PYENV_DEBUG=1 pyenv install -v 3.6.4
Tests