setup.py: Install SecretStorage 2.x for Python older than 3.5
This hack is only needed for pip versions older than 9.
Fixes
@@ -58,9 +58,13 @@ params = dict(
':sys_platform=="win32"': [
'pywin32-ctypes!=0.1.0,!=0.1.1',
],
- ':sys_platform=="linux2" or sys_platform=="linux"': [
+ ':sys_platform=="linux" and python_version>="3.5"': [
"secretstorage",
],
+ ':(sys_platform=="linux2" or sys_platform=="linux")'
+ ' and python_version<"3.5"': [
+ "secretstorage<3",
+ ],
},
setup_requires=[
'setuptools_scm>=1.15.0',
