fix: python tix detection blocks reuse (#34768)
Now that the `tix` variant is conditional, it should also be detected condititionally, otherwise the spec is invalid and cannot be used during concretization.
This commit is contained in:
parent
781c4823e6
commit
07499f2355
@ -298,6 +298,7 @@ def determine_variants(cls, exes, version_str):
|
|||||||
variants += "~pyexpat"
|
variants += "~pyexpat"
|
||||||
|
|
||||||
# Some variant names do not match module names
|
# Some variant names do not match module names
|
||||||
|
if "+tkinter" in variants:
|
||||||
try:
|
try:
|
||||||
python("-c", "import tkinter.tix", error=os.devnull)
|
python("-c", "import tkinter.tix", error=os.devnull)
|
||||||
variants += "+tix"
|
variants += "+tix"
|
||||||
|
Loading…
Reference in New Issue
Block a user