On 18.05.23 at 10:44 Ben Greiner wrote:
Am 18.05.23 um 10:33 schrieb Johannes Kastl:
[python module not reporting the right version]
What would be the right way?
You are missing setuptools-scm or are using a setuptools-scm version which does not come with TOML support automatically (on Leap, Tumbleweed should have it):
https://github.com/ansible/ansible-builder/blob/d414c7232defe4a9647bcfa522c3...
Add the python module to the BuildRequires.
Will do so, thanks!
Also, you can see the problem in the fact that it installed ansible_builder-0.0.0.dist-info into the sitelib.
This is discouraged:
%files %{ansible_python_sitelib}/ansible_builder-*-info
Use
%{ansible_python_sitelib}/ansible_builder-%{version}.dist-info
in order to detect such mistakes. And again I learned another thing about python packaging. Thanks Ben for the education! Will keep that information at hand.
Have a nice one, Johannes -- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537