Well, I have two kinds of comments about the new version of wxversion.
I realy deeply tested the new version of wxversion. I have two kinds
of comments.
1) In its present incarnation, it is working if you add these missing
lines
if type(required) == str:
required = [required]
in the checkInstalled function.
I suggest to change the function argument "required" by "force".¨
I find the name "force" more speaking.
Indeed, in a statement like:
r = checkInstalled('2.5', required='ansi')
"required" is ok. But in the statement
r = checkInstalled('2.5-unicode', required='ansi')
it sounds strange.
r = checkInstalled('2.5-unicode', force='ansi')
seems to me better. The same for
r = checkInstalled('2.5-gtk', force='gtk2')
2) I saw the modifications you implemented. I tested something similar
but not as good. If fact, I do not like to much the approach used
in the wxversion module. To be short, it guesses more than it selects.
This may lead to confusion, when there are several proposed versions
with different options or when there is a typo in a version name:
r = checkInstalled('2.5-zzz')
About the ensureMinimal fct, I do not know what to think about it.
It may be useful, it is hazardous if you do not know anything about
future non existing versions!
Jean-Michel Fauth, Switzerland.