Add __version__ boilerplate.
authorwhitequark <whitequark@whitequark.org>
Wed, 16 Oct 2019 15:31:26 +0000 (15:31 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 16 Oct 2019 15:31:26 +0000 (15:31 +0000)
nmigen_soc/__init__.py

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..3d136b59063df0d516093f37a2f22b14c8c1f3aa 100644 (file)
@@ -0,0 +1,5 @@
+import pkg_resources
+try:
+    __version__ = pkg_resources.get_distribution(__name__).version
+except pkg_resources.DistributionNotFound:
+    pass