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,11 +298,12 @@ 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
|
||||||
try:
|
if "+tkinter" in variants:
|
||||||
python("-c", "import tkinter.tix", error=os.devnull)
|
try:
|
||||||
variants += "+tix"
|
python("-c", "import tkinter.tix", error=os.devnull)
|
||||||
except ProcessError:
|
variants += "+tix"
|
||||||
variants += "~tix"
|
except ProcessError:
|
||||||
|
variants += "~tix"
|
||||||
|
|
||||||
# Some modules are platform-dependent
|
# Some modules are platform-dependent
|
||||||
if not is_windows:
|
if not is_windows:
|
||||||
|
Loading…
Reference in New Issue
Block a user