diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-02-13 16:23:46 +0100 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-02-13 16:23:46 +0100 |
| commit | 26c61d43f414b2b2de3c97dbd8559d206c24fc9f (patch) | |
| tree | 56a62fd293a98484052fb91892f00e5e9c2c6188 /py/makeversionhdr.py | |
| parent | ae715a827b3d9b0cdd700c514d487a1aa5905e1f (diff) | |
Change sys.implementation to return circuitpython and the circuitpython version number that doesn't start with v. Fixes #86.
Diffstat (limited to 'py/makeversionhdr.py')
| -rw-r--r-- | py/makeversionhdr.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/py/makeversionhdr.py b/py/makeversionhdr.py index 69b9730ea..e7cc4d630 100644 --- a/py/makeversionhdr.py +++ b/py/makeversionhdr.py @@ -47,12 +47,7 @@ def get_version_info_from_git(): return None # Try to extract MicroPython version from git tag - if git_tag.startswith("v"): - ver = git_tag[1:].split("-")[0].split(".") - if len(ver) == 2: - ver.append("0") - else: - ver = ["0", "0", "1"] + ver = git_tag.split("-")[0].split(".") return git_tag, git_hash, ver |
