mirror of https://github.com/KLayout/klayout.git
Using tomli instead of tomllib which is not available for Python <3.10
This commit is contained in:
parent
2a1ac97b26
commit
7e8d27a93e
|
|
@ -1,5 +1,5 @@
|
|||
[build-system]
|
||||
requires = ["setuptools", "tomllib"]
|
||||
requires = ["setuptools", "tomli"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.cibuildwheel]
|
||||
|
|
|
|||
4
setup.py
4
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue