projects
/
nmigen-soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a4250
)
Add __version__ boilerplate.
author
whitequark
<whitequark@whitequark.org>
Wed, 16 Oct 2019 15:31:26 +0000
(15:31 +0000)
committer
whitequark
<whitequark@whitequark.org>
Wed, 16 Oct 2019 15:31:26 +0000
(15:31 +0000)
nmigen_soc/__init__.py
patch
|
blob
|
history
diff --git
a/nmigen_soc/__init__.py
b/nmigen_soc/__init__.py
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..3d136b59063df0d516093f37a2f22b14c8c1f3aa 100644
(file)
--- a/
nmigen_soc/__init__.py
+++ b/
nmigen_soc/__init__.py
@@
-0,0
+1,5
@@
+import pkg_resources
+try:
+ __version__ = pkg_resources.get_distribution(__name__).version
+except pkg_resources.DistributionNotFound:
+ pass