From 4f147d2ce6fd34f5ac4525fb4cb503b612fcf511 Mon Sep 17 00:00:00 2001 From: Andy Freeland Date: Tue, 27 Nov 2018 11:02:27 -0800 Subject: [PATCH] Fix Python 2.6 compatibility --- requirements.txt | 3 +++ setup.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/requirements.txt b/requirements.txt index 0e62ea872..1f3f27179 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,7 @@ setuptools>=18.8.1 +# pycparser is a transitive dependency of cryptography. 2.18 is the last +# release with Python 2.6 support +pycparser==2.18 ; python_version=="2.6" cryptography>=1.4 boto3>=1.1.3 ruamel.yaml>=0.11.7,<0.12.0 ; python_version=="2.6" diff --git a/setup.py b/setup.py index 2b1a919aa..374f6b5d6 100755 --- a/setup.py +++ b/setup.py @@ -23,6 +23,9 @@ setup( 'ruamel.yaml>=0.11.7,<0.12.0 ; python_version=="2.6"', 'ruamel.yaml>=0.11.7 ; python_version>"2.6"', 'boto3>=1.1.3', + # pycparser is a transitive dependency of cryptography. 2.18 is the + # last release with Python 2.6 support + 'pycparser==2.18 ; python_version=="2.6"', 'cryptography>=1.4', 'setuptools>=18.8.1', 'ordereddict>=1.1',