eix can access Gentoo portage ebuild information and description very quickly (using a local cache). It can also be used to access information on installed packages, local settings, and local and external overlays, and informs about changes in the tree
GNU General Public License v2.0
163
stars
12
forks
source link
Improve sorting of USE flags containing numbers (such as python_targets_python3_10) #86
Hi,
At the moment, running eix -e setuptools shows PYTHON_TARGETS="pypy3 python3_10 python3_7 python3_8 python3_9".
Could you please look into improving the algorithm to sort those in a more human-friendly way?
Since the spec allows [A-Za-z0-9+_@-], I think the regex [A-Za-z0-9]+ could define a "word". And if that "word" is numeric, it should be sorted accordingly.
EDIT: actually, maybe any number should be treated specifically so that version10 comes after version2.
Hi, At the moment, running
eix -e setuptools
showsPYTHON_TARGETS="pypy3 python3_10 python3_7 python3_8 python3_9"
.Could you please look into improving the algorithm to sort those in a more human-friendly way?
Since the spec allows
[A-Za-z0-9+_@-]
, I think the regex[A-Za-z0-9]+
could define a "word". And if that "word" is numeric, it should be sorted accordingly.EDIT: actually, maybe any number should be treated specifically so that
version10
comes afterversion2
.There is a similar bug report for portage itself.