Zbigniew Jędrzejewski-Szmek zbyszek@in.waw.pl wrote:
[…]
- use dynamic buildrequires to detect what plugins are needed
My problem is that the binary is linked to the libpython3.12.so shared library… The detection part is easy, the hard part is how to have the binary work when the shared lib is not installed.
Quick 'n' dirty: Have two binaries, unconditionally call add-determinism-python for *.pyc files, either from add-determinism or the BRP macro (which essentially should be called when %__brp_python_bytecompile is called?), rely on the packager to build-require add-determinism-python or require that from python3-devel (the missing binary should fail the build otherwise).
Tim