Ben, On 6/14/21 10:37 PM, Ben Greiner wrote:
Plain Leap 15.3 lacks the pyunittest macro from an up to date python-rpm-macros: [..] devel:languages:python uses d:l:p:backports for its build targets, which is not part of the released Leap 15.3 distribution.
Ah, I see. Many thanks for your explanation.
If you must update a package in SLE or Leap which must go into the distribution, replace the %pyunittest macro with
%{python_expand # export PYTHONPATH=%{builddir}%{$python_sitelib} $python -m unittest discover -v }
I'd prefer to use that for all packages I take care of. Because then those packages build just fine for Leap and SLE. Would such submissions be accepted for d:l:p?
The above retains compatibility with Tumbleweed.
That's exactly what I want. Another question related to %check during build: Are any special things needed for C wrapper modules? The C wrapper part of my ldap0 module seems not to be imported during %check: https://build.opensuse.org/package/live_build_log/home:stroeder:branches:hom... The shared library file _libldap0.cpython-3*m-x86_64-linux-gnu.so seems to get installed. Your help is much appreciated. Ciao, Michael.