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

Handle python upgrades #11

Open
jaimergp opened this issue Jan 30, 2024 · 0 comments
Open

Handle python upgrades #11

jaimergp opened this issue Jan 30, 2024 · 0 comments

Comments

@jaimergp
Copy link
Member

When an environment changes python versions (e.g. from 3.9 to 3.10), the conda-pip installed packages will have to be reinstalled for the new version too. Usually, conda does that automatically as part of the solve and noarch: python handling, but since right now we are not injecting that metadata, then they will be missed.

I see two solutions:

  • Enhance the post-command hook so we uninstall and reinstall the relevant PyPI packages (we are not keeping track right now!)
  • Convert all PyPI wheels to conda packages (maybe via conda2whl?) so this is handled by conda proper. However, this is only feasible for noarch-y packages (py_any). Python specific builds will still need to happen, which might result in solver conflicts unless we anticipate the need for new whl2conda conversions... catch 22!

Maybe the solution is a hybrid approach, but for now I think the first option is more robust.

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

1 participant