[go: nahoru, domu]

Skip to content
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

feature: Automate installation? #174

Open
fohrloop opened this issue Oct 26, 2020 · 1 comment
Open

feature: Automate installation? #174

fohrloop opened this issue Oct 26, 2020 · 1 comment

Comments

@fohrloop
Copy link

The installation process is simple, but it takes several steps, and most of them are some sort of copy-pasting. I'm guessing some (or all?) of it could be automated. The installation process is basically

1) Copy files to %USERPROFILE%\.pyenv

  • Maybe could be automated?
  • This is much a matter of taste but it could be possible to bundle the files to some executable file, and then make it to unpack the files into the %USERPROFILE%\.pyenv.

2) Set some Environment variables

  • Set PYENV and PYENV_HOME (User Environment)
  • Add bin and shims to PATH (User Environment)
  • (optional) Set the abovementioned also to Process Environment
  • (optional) Check version of pyenv

3) Run pyenv rehash

  • Could this be done automatically, too?

Optional: Update script

  • This could maybe be handy to some users.
@Gregory108
Copy link

As said in the instructions, (1-2) of your proposal are automated with chocolatey.
However, chocolatey package recency and automatic updates are not guaranteed. Current chocolatey version is from 2020-09-07
So, ideally, not only installation but updates also should be automated. Everythong should be automated!=)

davetapley added a commit to davetapley/ChocolateyPackages that referenced this issue Jul 5, 2021
The docs (1) say:

> If you installed using Chocolatey, you can skip to step 3.
> 1. Add PYENV and PYENV_HOME to your Environment Variables

And on (2) it's implied that PYENV_HOME is set by Chocolatey.

(1) https://github.com/pyenv-win/pyenv-win#finish-the-installation
(2) pyenv-win/pyenv-win#174 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants