Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

how to specify path to pyenv executable? module is looking for it inside {{ pyenv_root }}/bin #39

Open
maspotts opened this issue Dec 30, 2021 · 1 comment

Comments

@maspotts
Copy link

maspotts commented Dec 30, 2021

Hi: I've been able to successfully build python (3.10.1) with this module (which is great because I could not get it to build using pyenv via the shell module!) but I have one problem: the module is looking for pyenv (executable) inside pyenv_root (actually in {{ pyenv_root }}/bin). Whereas I have pyenv installed in /opt/brew/bin. I can get the module to build by specifying pyenv_root as /opt/brew (and hence it finds the pyenv executable) but then of course it fails to install, because my pyenv_root is really ~/.pyenv. How can I specify the correct pyenv_root (~/.pyenv) and also tell the module to use /opt/brew/bin/pyenv? Thanks!!

@maspotts
Copy link
Author

maspotts commented Dec 31, 2021

In the code I see: cmd_path = os.path.join(pyenv_root, "bin", "pyenv") which is very explicit, but surprising (to me) since my ~/.pyenv does not contain a bin subdir at all. I verified a successful workaround: I can create a symlink (mkdir ~/.pyenv/bin && ln -s /opt/brew/bin/pyenv ~/.pyenv/bin/) and then my python 3.10.1 install does succeed. But it would be very nice to be able to supply an arg (eg. cmd_path: /opt/brew/bin/pyenv) to the module in my task file instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant