3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-19 21:55:48 +00:00

Fix pyosys install issues

This commit is contained in:
Akash Levy 2025-03-20 17:58:54 -07:00
parent 9f93e9c6e8
commit efadf5751d
2 changed files with 7 additions and 9 deletions

View file

@ -21,14 +21,11 @@ from setuptools.command.build_ext import build_ext
__dir__ = os.path.dirname(os.path.abspath(__file__))
yosys_version_rx = re.compile(r"YOSYS_VER\s*:=\s*([\w\-\+\.]+)")
yosys_version_rx = re.compile(r"PREQORSOR_VERSION\s*:=\s*([\w\-\+\.]+)")
version = yosys_version_rx.search(
open(os.path.join(__dir__, "Makefile"), encoding="utf8").read()
)[1].replace(
"+", "."
) # Convert to patch version
open(os.path.join(__dir__, "../../Makefile"), encoding="utf8").read()
)[1]
class libyosys_so_ext(Extension):
def __init__(