summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-09-01 00:15:09 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-01 00:52:40 -0400
commit12ac5fba0e05b05bcfbfa6dde61168048550376a (patch)
tree271f640fcfe186302d1095aefe4325f159683425 /src/leap
parent3e18f9412e0204a7131b4be5485836d7183d2484 (diff)
[bug] fix conflicts installing namespace packages in dev/install mode
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/leap/bitmask/__init__.py b/src/leap/bitmask/__init__.py
index 74f4e668..dba87b5e 100644
--- a/src/leap/bitmask/__init__.py
+++ b/src/leap/bitmask/__init__.py
@@ -1,4 +1,12 @@
-
+import pkg_resources
from ._version import get_versions
+
__version__ = get_versions()['version']
del get_versions
+
+# FIXME: HACK for https://github.com/pypa/pip/issues/3
+# Without this 'fix', there are resolution conflicts when pip installs at the
+# same time bitmask in develop mode and other package in the leap namespace
+# from pypi. For instance:
+# 'pip install -e .' and 'pip install leap.common'
+pkg_resources.get_distribution('leap.bitmask')