Funny error when building pandas for SLES15: "wrong" name for wheel file

Hi all, I am trying to package ansible-sign, the latest tool in the Ansible cosmos. Packaging for Tumbleweed was a charm, but I noticed one funny thing when building for SLES15 with the python3 module enabled (aka using python3.10). The project setup is the same as for the other Ansible tools, i.e. setting %pythons to only python310 in prjconf. It has poetry in its build dependency chain, and this pulls in python-pandas somewhere in the chain. I simply linkpac'ed the Tumbleweed package and built it, which failed during the wheel installation step. "No suitable distribution found" and "No matching tags...". After some experiments I came up with a "simple" solution:
%install mv ./build/pandas-%{version}-cp310-cp310-linux_x86_64.whl ./build/pandas-%{version}-cp3_10-cp3_10-linux_x86_64.whl %pyproject_install
I have no idea why pip on Tumbleweed and on SLES15 expect different tags, where the only difference is an underscore in the python version (cp310 vs. cp3_10). Can someone shed some light to ease my troubled mind? Thanks in advance, Johannes
https://build.opensuse.org/package/show/home:ojkastl_buildservice:poetry_for... -- 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

On 13.03.23 at 17:03 Johannes Kastl wrote:
After some experiments I came up with a "simple" solution:
%install mv ./build/pandas-%{version}-cp310-cp310-linux_x86_64.whl ./build/pandas-%{version}-cp3_10-cp3_10-linux_x86_64.whl %pyproject_install
I have no idea why pip on Tumbleweed and on SLES15 expect different tags, where the only difference is an underscore in the python version (cp310 vs. cp3_10).
And I had to revert the workaround today, the original package is now building properly again... Might be related to the project now no longer building against the GA versions of SLES15 and SLE-Python3-Module... Kind Regards, 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
participants (1)
-
Johannes Kastl