3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-23 21:35:31 +00:00

Made into Python module

This commit is contained in:
Chris Pattison 2018-08-01 22:46:49 -07:00
parent 2fef25f93d
commit d249e1f259
14 changed files with 30 additions and 24 deletions

View file

@ -15,11 +15,7 @@ help:
@echo ""
install:
mkdir -p $(DESTDIR)$(PREFIX)/bin
mkdir -p $(DESTDIR)$(PREFIX)/share/yosys/python3
cp sbysrc/sby_*.py $(DESTDIR)$(PREFIX)/share/yosys/python3/
sed 's|##yosys-sys-path##|sys.path += [os.path.dirname(__file__) + p for p in ["/share/python3", "/../share/yosys/python3"]]|;' < sbysrc/sby.py > $(DESTDIR)$(PREFIX)/bin/sby
chmod +x $(DESTDIR)$(PREFIX)/bin/sby
pip3 install -e .
html:
make -C docs html