diff --git a/pyproject.toml b/pyproject.toml index 7f820b541..a488932ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools", "tomllib"] +requires = ["setuptools", "tomli"] build-backend = "setuptools.build_meta" [tool.cibuildwheel] diff --git a/setup.py b/setup.py index 7569c16d3..6f3415574 100644 --- a/setup.py +++ b/setup.py @@ -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