-
Notifications
You must be signed in to change notification settings - Fork 75
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
Upgrading pip on 24.04 base fails #2059
Comments
It appears that
what is the recommended way to upgrade pip on a 24.04 base? |
fyi, this is a significant issue for charms with a 22.04 and 24.04 base, because pip needs to be upgraded on 22.04 or the build fails
|
Thanks for the report! It's probably worth making it clearer in the docs that you can't replace I think the following workaround in your
That doesn't solve it for a case where we would need a newer pip on a base >= noble, but I think in that case what we'd probably have to do is set up another virtual environment in a temporary directory somewhere and then override |
Thank you for reporting your feedback to us! The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3850.
|
Upgrading pip with |
Bug Description
python3 -m pip install --upgrade pip==24.3.1
fails on Ubuntu 24.04Expected behavior
charmcraft does not mark the environment as externally managed (https://packaging.python.org/en/latest/specifications/externally-managed-environments/#recommendations-for-distros), or the docs (e.g. https://canonical-charmcraft--2053.com.readthedocs.build/en/2053/howto/charm-to-poetry/#select-compatible-versions-of-pip-and-poetry) include instructions to use
--break-system-packages
To Reproduce
Environment
Ubuntu 22.04
charmcraft.yaml
Relevant log output
The text was updated successfully, but these errors were encountered: