Graham Perrin wrote:
On 10/10/2025 05:16, Stephen Montgomery-Smith wrote:

…

    ## PEP394 says Python 3 installs should all provide this command
    pyexec = "python3";

I notice that the lang/python3.11 doesn't include python3 as a link to python3.11.


Maybe relevant, after installing lang/python3:

blah@alpha5-unannounced:~ % file /usr/local/bin/python3
/usr/local/bin/python3: symbolic link to python3.11
blah@alpha5-unannounced:~ %

<https://www.freshports.org/lang/python3/#requiredrun>


The symbolic link ports are not allowed to be specified as dependencies at all. If the file is executed during build using specifically `python3`, then specify BINARY_ALIAS. Often times the shebangs also specify `python3` or similar so make sure to USES=shebangfix when necessary too.

The way we have symbolic link ports does not align with PEP-394 where they are expected to be included in the default Python distribution/interpreter. I am working on something to obviate the symbolic link ports when ${DEFAULT_VERSIONS} is set appropriately so that we actually follow the expectation from the wider Python world.

--
Charlie Li
...nope, still don't have an exit line.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to