-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Improvement: Follow XDG config spec #1789
Comments
I don't see anything in https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html about software installed per-user which Pyenv is in the stock setup as are its Python installations. |
|
|
There are plenty of tools that are platform-dependent tools using the XDG config spec. The spec was made for per-user tools, so I am pretty sure the smart guys who made this thought of this. |
Having read https://bbs.archlinux.org/viewtopic.php?id=227166 which explains how XDG relates to the FHS, it's clear that installed software is outside of XDG and paths to it are pointed to by other envvars:
Pyenv uses the So it anything, it should be moved to |
I am fine with that, as long as it does not clutter up the space directly under the home directory. Most Linux tools out there have moved into the XDG_CONFIG_SPEC and comparing the home directory to a few years ago, it is much cleaner in this regard. |
Feel free to submit a PR to change the default installation directory and link to this discussion. https://github.com/pyenv/pyenv-installer will need a PR to do the same as well. |
An old issus was closed regarding XDG: #139 - but that was 7 years ago now. Since then the XDG spec have become much more predominant. Many common tools follow it.
This issue is created to re-evaluate where pyenv is installed by default, using the XDG config and data dirs as appropriate. This gives a cleaner home directory for users, and users will also know that files placed in
$XDG_CONFIG_HOME
or the default$HOME/.config
, are files that I as a user can manually update. And then also sync via dotfiles between machines, if wanted.Prerequisite
pyenv
and the defaultpython-build
plugin only. Please refrain from reporting issues of other plugins here.Description
PYENV_DEBUG=1
, e.g.env PYENV_DEBUG=1 pyenv install -v 3.6.4
The text was updated successfully, but these errors were encountered: