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:
parent
9f93e9c6e8
commit
efadf5751d
2 changed files with 7 additions and 9 deletions
9
setup.py
9
setup.py
|
|
@ -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__(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue