Skip to content

Commit e63989f

Browse files
illia-vsethmlarson
andauthored
Fix installing brotli extra on Python 2.7
Co-authored-by: Seth Michael Larson <[email protected]>
1 parent 2e7a24d commit e63989f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)