Control: reassign -1 src:libselinux
Hi Luke (2025.11.21_12:07:21_+0000)
I'm afraid this is because you are using a deprecated mode of pip.
I don't think pip is particularly suited to the use that libselinux has
for it. It's meant as an end-user package installer, not a build tool.
These days there is a separate build tool, "build" that we use for our
Python packaging. My recommendation would be to use that (via pybuild)
wherever possible.
If you look at your last build, you'll see:
DEPRECATION: Building 'selinux' using the legacy setup.py
bdist_wheel mechanism, which will be removed in a future version.
pip 25.3 will enforce this behaviour change. A possible replacement
is to use the standardized build interface by setting the
`--use-pep517` option, (possibly combined with
`--no-build-isolation`), or adding a `pyproject.toml` file to the
source tree of 'selinux'. Discussion can be found at
https://github.com/pypa/pip/issues/6334
That's the deprecation that was enacted now.
If you want to continue to use pip, you can explicitly specify
--use-pep517. You'll need --no-build-isolation too, to be able to do
this without downloading code from the Internet.
But... as I said, this isn't the recommended path.
Stefano
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272