libpsl, python and dependecies
Vincent Habchi
vince at macports.org
Mon Jun 29 10:07:12 UTC 2026
By the way Josh, I don’t mean to harass you, but I’m having a hard time understanding how the default python version works if not explicitly specified in a Portfile.
Namely, I would expect the Python select mechanism to default on the version chosen manually by python_select or python3_select. But in the Python Portgroup, the relevant function looks like this:
proc python_get_default_version {} {
global python.versions
set def_v 314
if {[info exists python.versions] && ${def_v} ni ${python.versions}} {
return [lindex ${python.versions} end]
} else {
return ${def_v}
}
}
Why is 314 hardcoded in this?
Vincent
More information about the macports-dev
mailing list