Skip to content

Commit

Permalink
Fix installing brotli extra on Python 2.7
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Michael Larson <[email protected]>
  • Loading branch information
illia-v and sethmlarson authored Oct 2, 2023
1 parent 2e7a24d commit e63989f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 85,9 @@
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*",
extras_require={
"brotli": [
"brotli>=1.0.9; (os_name != 'nt' or python_version >= '3') and platform_python_implementation == 'CPython'",
# https://github.com/google/brotli/issues/1074
"brotli==1.0.9; os_name != 'nt' and python_version < '3' and platform_python_implementation == 'CPython'",
"brotli>=1.0.9; python_version >= '3' and platform_python_implementation == 'CPython'",
"brotlicffi>=0.8.0; (os_name != 'nt' or python_version >= '3') and platform_python_implementation != 'CPython'",
"brotlipy>=0.6.0; os_name == 'nt' and python_version < '3'",
],
Expand Down

0 comments on commit e63989f

Please sign in to comment.