-
Notifications
You must be signed in to change notification settings - Fork 67
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
charm-python-packages
does not guarantee these packages are installed before packages in requirements.txt
#1664
Labels
Bug
Something isn't working
Comments
Thank you for reporting us your feedback! The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2848.
|
Another way in which this issue could be reproduced is by running
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
I have noticed that the list of packages in
charm-python-packages
may not guarantee they will be installed before charm requirements, as the docs suggest.The behaviour I am getting is that the packages listed in
charm-python-packages
get collected and it looks like they are being installed as the very first thing, for example:but in reality they get installed after collecting all packages, including the ones listed in
requirements.txt
.This could result in errors if any of the charm requirements depends on a
charm-python-package
to be installed (or upgraded) a priori.Please NOTE I concluded this was an issue after trying to solve this other issue with the suggestions from this post. Upgrading
setuptools
fixes the issue withmarkupsafe
andjinja2
, I tested it in a virtual env, but it was not possible in the charm.To Reproduce
charmcraft pack -v
setuptools
andpip
packages get actually installed and upgraded.Environment
charmcraft.yaml
Relevant log output
Logs: https://pastebin.canonical.com/p/DhpBRNn7pz/
The text was updated successfully, but these errors were encountered: