diff options
author | Lusheng Ji <lji@research.att.com> | 2018-04-18 09:01:10 -0400 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2018-04-18 09:01:15 -0400 |
commit | 042bc21ea4af4c8e5ee4cbbb0e3d0c89a70b7b8e (patch) | |
tree | 85a5c3d90b2f801fb7ab573f066dff5d3036f092 | |
parent | b5c71a4175248a0621064da949de0218ee6c2497 (diff) |
Fix setup for pip 10.0.0
Issue-ID: DCAEGEN2-452
Change-Id: I22c2f3234408a588ebf664d53eae4737474cd800
Signed-off-by: Lusheng Ji <lji@research.att.com>
-rw-r--r-- | setup.py | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -18,8 +18,16 @@ import os from setuptools import setup, find_packages -from pip.req import parse_requirements -from pip.download import PipSession +#from pip.req import parse_requirements +try: # for pip >= 10 + from pip._internal.req import parse_requirements +except ImportError: # for pip <= 9.0.3 + from pip.req import parse_requirements +#from pip.download import PipSession +try: # for pip >= 10 + from pip._internal.download import PipSession +except ImportError: # for pip <= 9.0.3 + from pip.download import PipSession setup( name='miss_htbt_service', |