Tcl text processing: Python 3.10 variants
Zhenfu Shi
i0ntempest at macports.org
Mon Mar 21 19:51:39 UTC 2022
Hi all,
I’m trying to add Python 3.10 variant to a few ports, but one of them (mpv) uses `set python_branch [join [split ${ver} {}] ".”]` to convert branch strings to version strings, resulting in “310” being converted to “3.1.0”. Can anyone advise how to change this line so it gives “3.10” without breaking compatibility with older Python versions?
Thanks,
Zhenfu
More information about the macports-dev
mailing list