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:
Harmen Stoppels 2023-01-11 18:04:20 +01:00 committed by GitHub
parent 781c4823e6
commit 07499f2355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,6 +298,7 @@ def determine_variants(cls, exes, version_str):
variants += "~pyexpat"
# Some variant names do not match module names
if "+tkinter" in variants:
try:
python("-c", "import tkinter.tix", error=os.devnull)
variants += "+tix"