pyenv / pyenv-virtualenv

a pyenv plugin to manage virtualenv (a.k.a. python-virtualenv)
MIT License
6.3k stars 398 forks source link

`pyenv virtualenvs` failure on macOS Big Sur #445

Closed p-linnane closed 1 year ago

p-linnane commented 1 year ago

Too many issues will kill our team's development velocity, drastically. Make sure you have checked all steps below.

Prerequisite

Description

 "$(pyenv init -)" && pyenv virtualenvs
  /usr/bin/readlink: illegal option -- f

Hello. macOS Big Sur does not support readlink -f. Recent changes in https://github.com/pyenv/pyenv-virtualenv/commit/c4de2555b7343c95a3380dece3098eaf3baa4e73 have fixed build errors for newer versions of macOS, but Big Sur cannot handle this. Is Big Sur still a supporterd OS?

Relevant Homebrew CI run with the failures: https://github.com/Homebrew/homebrew-core/actions/runs/3844517040/jobs/6561365032

ttllttttlltt commented 1 year ago

Maybe use a workaround, which works for me on Big Sur:

brew install coreutils
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
alias readlink=greadlink