Using tomli instead of tomllib which is not available for Python <3.10

This commit is contained in:
Matthias Koefferlein 2025-11-09 18:16:17 +01:00
parent 2a1ac97b26
commit 7e8d27a93e
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "tomllib"]
requires = ["setuptools", "tomli"]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel]

View File

@ -68,7 +68,7 @@ import distutils.command.build_ext
import setuptools.command.build_ext
from setuptools.command.build_ext import build_ext as _build_ext
import multiprocessing
import tomllib
import tomli
# for Jenkins we do not want to be greedy
multicore = os.getenv("KLAYOUT_SETUP_MULTICORE")
@ -323,7 +323,7 @@ class Config(object):
raise RuntimeError("Cannot find 'pysetup.toml' in " + src_path)
with open(pysetup_file, "rb") as f:
pysetup = tomllib.load(f)
pysetup = tomli.load(f)
header = {}
is_library = None