HomeFreeBSD

python.mk: normalise wheel filename arguments in PEP517_INSTALL_CMD

Description

python.mk: normalise wheel filename arguments in PEP517_INSTALL_CMD

The living binary distribution format specification derived from
PEP-427 [0] prescribes that:

In distribution names, any run of -_. characters (HYPHEN-MINUS,
LOW LINE and FULL STOP) should be replaced with _ (LOW LINE), and
uppercase characters should be replaced with corresponding lowercase
ones. This is equivalent to PEP 503 normalisation followed by
replacing - with _. Tools consuming wheels must be prepared to
accept . (FULL STOP) and uppercase letters, however, as these
were allowed by an earlier version of this specification.

This fixes staging for packages built under PEP-517 with dashes
(HYPHEN-MINUS) in their names.

[0] https://packaging.python.org/en/latest/specifications/binary-distribution-format/

Reported by: amdmi3
Tested by: yasu, rhurlin
PR: 268893
With hat: python
Approved by: mentors (implicit)

Details

Provenance
vishwinAuthored on Jan 13 2023, 4:12 AM
Parents
R11:329690e424e6: net/frr8: Update to 8.4.2
Branches
Unknown
Tags
Unknown