Open iceotopejs opened 1 year ago
Can you try this : apt update && apt install pkg-config libsystemd-dev python3-dev
This python library, downloaded from pypi, will compile on the fly. To prevent this, install this library with the OS package system (apt, dnf, etc), and allow your virtual environment to interact with the system site-packages directory :
--system-site-packages
poetry config virtualenvs.options.system-site-packages true
Many libraries on Linux work that way.
@iceotopejs
apt update && apt install pkg-config libsystemd-dev python3-dev
installing the librairies, fixed the issue for me.
Sorry for the late response.
apt update && apt install pkg-config libsystemd-dev python3-dev
installing the librairies, fixed the issue for me.
This did indeed fix the issue for me.
I get the following error when trying add this package as a dependency from pypi using
poetry add systemd-python
.The same issue occurs when trying to build a wheel
pip wheel "systemd-python (==235)"
as the command above describes.I also can't add this dependency directly via git:
I'm not familiar with details as to why this is occuring, but all I want to do is add this package as a dependency for my project, preferably with poetry. I am not sure if there are other methods of adding this as a dependency to
pyproject.toml
that would require its installation.OS:
22.04.1-Ubuntu
Python version:Python 3.10.12
Pip version:pip 23.2.1
Poetry version:Version: 1.6.1
Poetry-Core Version: 1.7.0