Skip to content

FindPython2: avoid doubling the extension in CPython2 SOABI

Commit 951640f1 (FindPython: manage SOABI for all Python versions, 2020-08-11) extended support for Python2's SOABI variable in order to support the PyPy interpreter as well. This caused a regression in the way that the SOABI variable was built up for the CPython interpreter. This caused the variable to be set to .so which ended up causing a doubling of the resulting SOABI variable in the end.

Co-Author: @marc.chevrier
Fixes: #21548 (closed)


@brad.king This is built on top of 3.18.5 for inclusion into a 3.18.6 (if any). Assigning to %3.19.2 milestone in the meantime.

Cc: @marc.chevrier @seanm
Backport: release-3.18
Backport: release

Edited by Brad King

Merge request reports