Skip to content

Commit

Permalink
Merge pull request #219 from FelixSchwarz/fixed-wheel-requirements
Browse files Browse the repository at this point in the history
use conditional requirements to ensure "chardet" is always required on Python 3
  • Loading branch information
pietermarsman authored Oct 13, 2019
2 parents c6ad95e + 5ff84b8 commit eae70b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

import pdfminer as package

requires = ['six', 'pycryptodome', 'sortedcontainers']
if sys.version_info >= (3, 0):
requires.append('chardet')
requires = ['six', 'pycryptodome', 'sortedcontainers', 'chardet ; python_version > "3.0"']

setup(
name='pdfminer.six',
Expand Down

0 comments on commit eae70b9

Please sign in to comment.