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

Make the install dir target dependent #448

Closed
wants to merge 2 commits into from

Conversation

ruben-arts
Copy link
Contributor

When I installed pixi it put pixi in $home/AppData/Local/pixi/pixi.exe and also added that folder to the path.
This is correct but the global install code was putting it in a different dir. $home/.pixi/bin which is normal for unix.

@baszalmstra
Copy link
Contributor

baszalmstra commented Nov 11, 2023

Maybe it would be better to use the dirs crate to find the correct location?

But I also dont think this location is wrong (in home folder). Rustup does the same, so does pipx. Maybe we should just add that folder to path? And/or install pixi there?

@baszalmstra
Copy link
Contributor

Alsco, both paths are also added by the installer to the PATH right?

@ruben-arts
Copy link
Contributor Author

Ah I understood that the appdata folder was a better location. This is the only folder added to the path by the install script.

@baszalmstra
Copy link
Contributor

Mm yeah you might have a point. Im not really sure what a sane default is.

@ruben-arts
Copy link
Contributor Author

Pipx actually used the user data folder: https://github.com/pypa/pipx/blob/ce27a75ce757e165bb76e3b71a8380f3b28375e9/src/pipx/constants.py#L10C21-L10C35

Anaconda and rustup do put it in the home folder. I'm kinda confused now.

@ruben-arts ruben-arts closed this Nov 11, 2023
baszalmstra pushed a commit that referenced this pull request Nov 14, 2023
Smaller solution than #448 

Decided to keep it simple to also make the documentation simpler. Now it
is just the home folder for everything.
@ruben-arts ruben-arts deleted the fix/global_instal_dir_windows branch February 15, 2024 10:30
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

Successfully merging this pull request may close these issues.

None yet

2 participants