Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: YoWASP/yosys
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f61f6e270175
Choose a base ref
...
head repository: YoWASP/yosys
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b7905c17b7bd
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 5, 2021

  1. Copy the full SHA
    b7905c1 View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 pypi/setup.py
4 changes: 2 additions & 2 deletions pypi/setup.py
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@

def version():
with open("../yosys-src/Makefile", "r") as f:
yosys_version = re.search(r"^YOSYS_VER := ([\d.]+)\+(\d+)$", f.read(), re.M)
if yosys_version[2] == "0":
yosys_version = re.search(r"^YOSYS_VER := ([\d.]+)(?:\+(\d+))?$", f.read(), re.M)
if yosys_version[2] is None or yosys_version[2] == "0":
upstream_version = yosys_version[1]
else:
upstream_version = yosys_version[1] + ".post" + yosys_version[2]