diff options
author | mattsb42-aws <bullocm@amazon.com> | 2018-02-09 11:18:01 -0800 |
---|---|---|
committer | mattsb42-aws <bullocm@amazon.com> | 2018-02-09 11:18:01 -0800 |
commit | b0b141cf75a39613ebc58e0c6c018fc01287fb08 (patch) | |
tree | 9596192170c6171b44e31d0d02e6061df4a4c7d7 /setup.py | |
parent | f31ff816e74f9ab1b9d518215b2a77ab6ed64141 (diff) | |
download | pysnmp-git-b0b141cf75a39613ebc58e0c6c018fc01287fb08.tar.gz |
fixing Python 2.6 dependency issue
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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] |