From 508af2bf8cba1b96a994ef6041f3333975e6b533 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Wed, 21 Sep 2022 17:48:54 +0200 Subject: [PATCH] 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> --- bucket/pyenv.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bucket/pyenv.json b/bucket/pyenv.json index 8c3c91b490..b2b126c44b 100644 --- a/bucket/pyenv.json +++ b/bucket/pyenv.json @@ -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",