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

[IMPROVEMENT] Choose python install #3313

Open
3 tasks done
GiuseppeIII opened this issue Feb 17, 2025 · 4 comments
Open
3 tasks done

[IMPROVEMENT] Choose python install #3313

GiuseppeIII opened this issue Feb 17, 2025 · 4 comments
Assignees
Labels
enhancement An improvement to WingetUI pip ready-to-go
Milestone

Comments

@GiuseppeIII
Copy link

Please confirm these before moving forward.

  • I have searched for my feature proposal and have not found a work-in-progress/duplicate/resolved/discarded issue.
  • This improvement refers to an existing feature. If you want to suggest a new feature, please use this template.
  • This improvement is not a bug. If you want to report a bug, please use this template.

Describe the improvement

Would there be a way to choose what python install you want to use for pip (or have it based on the PATH).

Describe how this improvement could help users

I am using pyenv to manage python versions, and so ideally would want UniGetUI to pull from the global python version set by pyenv and not the windows store python set by the App execution alias. Thanks for your consideration!

@GiuseppeIII GiuseppeIII added the enhancement An improvement to WingetUI label Feb 17, 2025
@marticliment marticliment added this to the Features milestone Feb 17, 2025
@marticliment marticliment marked this as a duplicate of #3400 Mar 4, 2025
@mrixner
Copy link
Contributor

mrixner commented Mar 4, 2025

I would see an implementation for this in one of three ways:

  1. Each Python installation is it's own source, much like vcpkg handles seperate triplets (which would also need the custom input thing like vcpkg, with a default version in the meantime). I think this is the best option for the current Pip manager, unless you would like [FEATURE REQUEST] Custom mirror sources for pip and npm repositories #1215.
  2. Elsewise, it could just be an option in the package manager settings to pick the version you want to use, however that's only a great option for people who have auxiliary versions and don't use all their versions (which, admittedly, is rare).
  3. If admin-locked settings are implemented, then the feature proposed by [FEATURE REQUEST] Specify package manager location/path #1855 could be used to select the python / pip executable.

As a side note - is it possible to change the source of a package imported from a bundle? If not, perhaps that might be a feature to add to allow vcpkg (and Pip, as proposed here) packages to be correctly installed to the system.

@marticliment
Copy link
Owner

As a side note - is it possible to change the source of a package imported from a bundle? If not, perhaps that might be a feature to add to allow vcpkg (and Pip, as proposed here) packages to be correctly installed to the system.

No (at least currently), because same packages are not necessarily expected to be available from different sources...

@marticliment
Copy link
Owner

Perhaps I could introduce some "Destination/PackageType" setting, that properly handles where a package is installed (python install/triplet) rather than the source (from where the package is pulled.)

@mrixner
Copy link
Contributor

mrixner commented Mar 6, 2025

I think that's a great idea, and makes everything more clear to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement to WingetUI pip ready-to-go
Projects
None yet
Development

No branches or pull requests

3 participants