summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/__init__.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-09-27 14:18:57 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-27 16:19:21 -0400
commit4d8e63e890e88c58feb750dd56ecbf60bed9b462 (patch)
tree29433783bcc71a9fb2516e4ed4aea14584b99532 /src/leap/bitmask/__init__.py
parent62d1f7eb5c714aabcb625499dd16d68df76c856b (diff)
[feature] launch backend from the qt gui entrypoint
Diffstat (limited to 'src/leap/bitmask/__init__.py')
-rw-r--r--src/leap/bitmask/__init__.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/leap/bitmask/__init__.py b/src/leap/bitmask/__init__.py
index dba87b5e..20719d47 100644
--- a/src/leap/bitmask/__init__.py
+++ b/src/leap/bitmask/__init__.py
@@ -1,12 +1,14 @@
+import sys
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')
+if not getattr(sys, 'frozen', False):
+ # 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')