Re: /usr/local/bin/python3: symbolic link to python3.11

From: Charlie Li <vishwin_at_freebsd.org>
Date: Mon, 13 Oct 2025 12:36:37 UTC
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.