fixing Python 2.6 dependency issue
parent
f31ff816e7
commit
b0b141cf75
|
@ -5,3 +5,4 @@ pycryptodomex; python_version == '3.2'
|
|||
pycryptodomex; python_version == '3.3'
|
||||
cryptography; python_version >= '3.4'
|
||||
pyasn1>=0.2.3
|
||||
ordereddict; python_version < '2.7'
|
||||
|
|
9
setup.py
9
setup.py
|
@ -60,11 +60,16 @@ if py_version < (2, 7) or (py_version >= (3, 0) and py_version < (3, 4)):
|
|||
else:
|
||||
crypto_lib = 'cryptography'
|
||||
|
||||
requires = ['pyasn1>=0.2.3', 'pysmi', crypto_lib]
|
||||
|
||||
if py_version < (2, 7):
|
||||
requires.append('ordereddict')
|
||||
|
||||
try:
|
||||
from setuptools import setup
|
||||
|
||||
params = {
|
||||
'install_requires': ['pyasn1>=0.2.3', 'pysmi', crypto_lib],
|
||||
'install_requires': requires,
|
||||
'zip_safe': True
|
||||
}
|
||||
|
||||
|
@ -78,7 +83,7 @@ except ImportError:
|
|||
|
||||
params = {}
|
||||
if py_version > (2, 4):
|
||||
params['requires'] = ['pyasn1(>=0.2.3)', 'pysmi', crypto_lib]
|
||||
params['requires'] = requires
|
||||
|
||||
doclines = [x.strip() for x in (__doc__ or '').split('\n') if x]
|
||||
|
||||
|
|
Loading…
Reference in New Issue