_toolchain.yosys: fix amaranth-yosys version extractor.
This commit is contained in:
parent
6857daff54
commit
df589a54e0
|
@ -120,8 +120,8 @@ class _BuiltinYosys(YosysBinary):
|
||||||
@classmethod
|
@classmethod
|
||||||
def version(cls):
|
def version(cls):
|
||||||
version = importlib_metadata.version(cls.YOSYS_PACKAGE)
|
version = importlib_metadata.version(cls.YOSYS_PACKAGE)
|
||||||
match = re.match(r"^(\d+)\.(\d+)(?:\.post(\d+))?", version)
|
match = re.match(r"^(\d+)\.(\d+)\.(?:\d+)(?:\.(\d+))?(?:\.post(\d+))?", version)
|
||||||
return (int(match[1]), int(match[2]), int(match[3] or 0))
|
return (int(match[1]), int(match[2]), int(match[3] or 0), int(match[4] or 0))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def data_dir(cls):
|
def data_dir(cls):
|
||||||
|
|
|
@ -44,7 +44,7 @@ build-backend = "pdm.backend"
|
||||||
|
|
||||||
[tool.pdm]
|
[tool.pdm]
|
||||||
# Remove this once we no longer support Python 3.8.
|
# Remove this once we no longer support Python 3.8.
|
||||||
ignore_package_warnings = ["sphinx*"]
|
ignore_package_warnings = ["sphinx*", "alabaster"]
|
||||||
|
|
||||||
[tool.pdm.build]
|
[tool.pdm.build]
|
||||||
# If amaranth 0.3 is checked out with git (e.g. as a part of a persistent editable install or
|
# If amaranth 0.3 is checked out with git (e.g. as a part of a persistent editable install or
|
||||||
|
|
Loading…
Reference in a new issue