mirror of https://github.com/YosysHQ/yosys.git
Fix pyosys install issues
This commit is contained in:
parent
9f93e9c6e8
commit
efadf5751d
7
Makefile
7
Makefile
|
|
@ -171,8 +171,8 @@ endif
|
|||
|
||||
YOSYS_VER := 0.51+46
|
||||
YOSYS_MAJOR := $(shell echo $(YOSYS_VER) | cut -d'.' -f1)
|
||||
YOSYS_MINOR := $(shell echo $(YOSYS_VER) | cut -d'.' -f2 | cut -d'+' -f1)
|
||||
YOSYS_COMMIT := $(shell echo $(YOSYS_VER) | cut -d'+' -f2)
|
||||
YOSYS_MINOR := $(shell echo $(YOSYS_VER) | cut -d'.' -f2)
|
||||
YOSYS_COMMIT := $(shell echo $(YOSYS_VER) | cut -d'.' -f3)
|
||||
CXXFLAGS += -DYOSYS_VER=\\"$(YOSYS_VER)\\" \
|
||||
-DYOSYS_MAJOR=$(YOSYS_MAJOR) \
|
||||
-DYOSYS_MINOR=$(YOSYS_MINOR) \
|
||||
|
|
@ -740,6 +740,7 @@ OBJS += passes/techmap/bmuxmap.o
|
|||
OBJS += passes/techmap/demuxmap.o
|
||||
OBJS += passes/techmap/muxcover.o
|
||||
OBJS += passes/techmap/aigmap.o
|
||||
OBJS += passes/techmap/attrmap.o
|
||||
|
||||
include $(YOSYS_SRC)/passes/hierarchy/Makefile.inc
|
||||
include $(YOSYS_SRC)/passes/memory/Makefile.inc
|
||||
|
|
@ -1019,7 +1020,7 @@ wheel: $(TARGETS) $(EXTRA_TARGETS)
|
|||
python3 -m pip wheel .
|
||||
|
||||
install_wheel: wheel
|
||||
python3 -m pip install pyosys*.whl --force-reinstall
|
||||
python3 -m pip install pyosys-$(YOSYS_VER)-*.whl --force-reinstall
|
||||
|
||||
install: $(TARGETS) $(EXTRA_TARGETS)
|
||||
$(INSTALL_SUDO) mkdir -p $(DESTDIR)$(BINDIR)
|
||||
|
|
|
|||
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…
Reference in New Issue