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]
|
[build-system]
|
||||||
requires = ["setuptools", "tomllib"]
|
requires = ["setuptools", "tomli"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[tool.cibuildwheel]
|
[tool.cibuildwheel]
|
||||||
|
|
|
||||||
4
setup.py
4
setup.py
|
|
@ -68,7 +68,7 @@ import distutils.command.build_ext
|
||||||
import setuptools.command.build_ext
|
import setuptools.command.build_ext
|
||||||
from setuptools.command.build_ext import build_ext as _build_ext
|
from setuptools.command.build_ext import build_ext as _build_ext
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import tomllib
|
import tomli
|
||||||
|
|
||||||
# for Jenkins we do not want to be greedy
|
# for Jenkins we do not want to be greedy
|
||||||
multicore = os.getenv("KLAYOUT_SETUP_MULTICORE")
|
multicore = os.getenv("KLAYOUT_SETUP_MULTICORE")
|
||||||
|
|
@ -323,7 +323,7 @@ class Config(object):
|
||||||
raise RuntimeError("Cannot find 'pysetup.toml' in " + src_path)
|
raise RuntimeError("Cannot find 'pysetup.toml' in " + src_path)
|
||||||
|
|
||||||
with open(pysetup_file, "rb") as f:
|
with open(pysetup_file, "rb") as f:
|
||||||
pysetup = tomllib.load(f)
|
pysetup = tomli.load(f)
|
||||||
|
|
||||||
header = {}
|
header = {}
|
||||||
is_library = None
|
is_library = None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue