blob: 48490a05a528284811047ae31adca136917aa3d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import os
import sys
import pkg_resources
from .util import here
from ._version import get_versions
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')
__version__ = get_versions()['version']
del get_versions
else:
try:
__version__ = open(os.path.join(
here(), 'version')).read().strip()
except Exception:
__version__ = '0+0xacab-unknown'
|