8000 Fix installing `brotli` extra on Python 2.7 · urllib3/urllib3@e63989f · GitHub
[go: up one dir, main page]

Skip to content

Commit e63989f

Browse files
illia-vsethmlarson
andauthored
Fix installing brotli extra on Python 2.7
Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
1 parent 2e7a24d commit e63989f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@
8585
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*",
8686
extras_require={
8787
"brotli": [
88-
"brotli>=1.0.9; (os_name != 'nt' or python_version >= '3') and platform_python_implementation == 'CPython'",
88+
# https://github.com/google/brotli/issues/1074
89+
"brotli==1.0.9; os_name != 'nt' and python_version < '3' and platform_python_implementation == 'CPython'",
90+
"brotli>=1.0.9; python_version >= '3' and platform_python_implementation == 'CPython'",
8991
"brotlicffi>=0.8.0; (os_name != 'nt' or python_version >= '3') and platform_python_implementation != 'CPython'",
9092
"brotlipy>=0.6.0; os_name == 'nt' and python_version < '3'",
9193
],

0 commit comments

Comments
 (0)
0