Open javierdelapuente opened 3 months ago
Can you attach the whole log file /home/ubuntu/.local/state/rockcraft/log/rockcraft-20240624-132944.870344.log
? I'd like to see which build-packages are being installed
Sure,
this is an example of a failing rockcraft pack
: https://pastebin.ubuntu.com/p/hDBf9WkGGW/
This is a sucessful rockcraft pack
, just removing python-packages: [gunicorn]
: /home/ubuntu/.local/state/rockcraft/log/rockcraft-20240624-140502.309905.log
Bug Description
Using the python plugin, I tried to use the library
psycopg2==2.9.9
in therequirements.txt
file. For that library, it is necessary to have thelibpq-dev
as abuild-package
.If no package is specified in the attribute
python-packages
, then the build works correctly.However, if a package is specified in the attribute
python-packages
, the build fails with an error related toPython.h
file not found.Adding manually pip, setuptools and wheel to the
python-packages
make it work again.To Reproduce
Add a requirements.txt file with:
The following rockcraft.yaml fails in
rockcraft pack
with an error that contains:
However this works (adding gunicorn to requirements.txt):
And this also works:
Environment
Ubuntu 22.04 LTS with rockcraft built from the main branch.
rockcraft.yaml
Relevant log output