HomeFreeBSD

devel/py-maturin: Fix command name for non-default Python versions

Description

devel/py-maturin: Fix command name for non-default Python versions

If devel/py-maturin is built for a non-default python flavor (e.g.,
'make FLAVOR=py38'), the port installs bin/maturin-<ver> and does not
install bin/maturin which is normal and expected.

The site-packages/maturin/__init__.py file, however, explicitly defines
the command to use as 'maturin'.

Because of this when using maturin to build other ports, they can fail
with "No such file or directory: 'maturin'". [1] Fix the issue by
aligning the command name to the actual Python flavor.

PR: 272618, 272600 [1]
Reported by: John W. O'Brien [1]
MFH: 2023Q3 (after 1 week)

(cherry picked from commit 00ae5289b23194d0b79413e62abc6ceff960fb09)

Details

Provenance
rfyu28uyeg_snkmail.comAuthored on Aug 3 2023, 11:04 AM
kaiCommitted on Aug 10 2023, 12:14 PM
Parents
R11:a5f5f665f15b: games/veloren-weekly: update to s20230809
Branches
Unknown
Tags
Unknown