[MacPorts] #74199: Changes needed to python-1.0.tcl to properly handle free threading python versions.
MacPorts
noreply at macports.org
Thu Jul 9 13:24:18 UTC 2026
#74199: Changes needed to python-1.0.tcl to properly handle free threading python
versions.
------------------------------+--------------------
Reporter: Veence | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: python portgroup | Port:
------------------------------+--------------------
Folks,
The python 1.0 port group relies in several places on a numeric comparison
between the current selected version and some milestone, eg:
{{{
${python.version} >= 37
}}}
for pep517
But this fails with the new freethreading python 3.15 because it is
installed as python315t, so ${python.version} is "315t" and the comparison
reverts to lexicographic order when one member is not an integer, and
lexicographically, "315t" < "37"
The simple fix would be to add a function to extract the numerical
composant by trimming the final t and proceed with the comparisons using
the return value of this function.
--
Ticket URL: <https://trac.macports.org/ticket/74199>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list