mislav / anyenv

rbenv-inspired version manager that can be configured to manage versions of ANYTHING

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows support

mcandre opened this issue · comments

Could anyenv support Windows, preferably Command Prompt, but PowerShell would also be great?

There appears to be no Python version manager for Windows. If anyenv supported Windows, then that would significantly help Python projects in Windows environments!

Getting Windows support would be tricky. Anyenv works by generating shims for executables in the shims/ directory, and those shims won't work on a Windows system because they are shell scripts. Extra support would have to be added to those shims so they are actually executable on Windows, but I'm not sure what a good approach for that would be.

Back in my dark days, I did a "port" of rbenv for Windows called rbenv-cmd. This is a not-complete-at-all implementation of rbenv using CMD script.

I tried to adapt my own scripts to build a javaenv with some success. So it may be possible to have anyenv also generate Windows scripts instead of bash scripts. Maybe as a plugin? Or simply as a fork?

chocolatey, an OSS package manager for Windows, has a shim-generation feature that allows it to put its generated shims into a directory on the PATH, and then each one then forwards to the binary in question.

I wonder if that concept could be re-used here?