pyenv@3.1.1: Improve manifest according to pyenv setup instruction (#3950)

* Add missing `PYENV_HOME` and `PYENV_ROOT` env var

as they are required by pyenv-win configuration https://github.com/pyenv-win/pyenv-win#add-system-settings and used by some external tools (like `pyenv-win-venv`

* Use the included script for all shells instead of scoop shims by adding the folder to PATH

* Update bucket/pyenv.json

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
This commit is contained in:
Christophe Dervieux 2022-09-21 17:48:54 +02:00 committed by GitHub
parent b53e68565a
commit 508af2bf8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,10 +12,14 @@
}
},
"pre_install": "if (!(Test-Path \"$persist_dir\\pyenv-win\\version\")) { New-Item \"$dir\\pyenv-win\\version\" | Out-Null }",
"bin": "pyenv-win\\bin\\pyenv.bat",
"env_add_path": "pyenv-win\\shims",
"env_add_path": [
"pyenv-win\\bin",
"pyenv-win\\shims"
],
"env_set": {
"PYENV": "$dir\\pyenv-win"
"PYENV": "$dir\\pyenv-win",
"PYENV_ROOT": "$dir\\pyenv-win",
"PYENV_HOME": "$dir\\pyenv-win"
},
"persist": [
"pyenv-win\\version",