Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use conditional requirements to ensure "chardet" is always required on Python 3 #219

Merged
merged 1 commit into from
Oct 13, 2019
Merged

use conditional requirements to ensure "chardet" is always required on Python 3 #219

merged 1 commit into from
Oct 13, 2019

Conversation

FelixSchwarz
Copy link
Contributor

Previously "chardet" was added only added when setup.py was run with Python 3. However wheels contain a static list of requirements and a wheel-based install will never execute setup.py at installation time.

pdfminer.six uses universal wheels for Python 2 and Python 3 so the requirements will always be wrong on one version (see #213).

The solution is to use conditional requirements as specified in PEP 496 which are evaluated at installation time.

…t on Python 3 (fixes #213)

Previously "chardet" was added only added when setup.py was run with Python 3.
However wheels contain a static list of requirements and a wheel-based
install will never execute setup.py at installation time.

pdfminer.six uses universal wheels for Python 2 and Python 3 so the
requirements will always be wrong on one version (see #213).

The solution is to use conditional requirements as specified in PEP 496
which are evaluated at installation time.
@lubo
Copy link

lubo commented May 22, 2019

Could anybody take a look at this, please?

@tataganesh
Copy link
Member

Has this been tested?

@lubo
Copy link

lubo commented Jul 10, 2019

I can confirm that it works as expected on Python 3.7 with pip 19.1.1, setuptools 41.0.1 and wheel 0.33.4.

@pietermarsman
Copy link
Member

pietermarsman commented Jul 14, 2019

Let's merge this. The syntax checks out: https://www.python.org/dev/peps/pep-0496/#examples

@pietermarsman pietermarsman changed the base branch from master to develop October 13, 2019 17:55
@pietermarsman pietermarsman merged commit eae70b9 into pdfminer:develop Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants