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

Ignore python_requires when installing with distutils #410

Conversation

bsolomon1124
Copy link
Contributor

@bsolomon1124 bsolomon1124 commented May 28, 2020

When using python setup.py <command>, distutils.dist.Distribution
does not recognize python_requires (unlike setuptools) and will
issue an obnoxious warning that doesn't actually tell the user
that their Python version is not supported.

Note that this (might not be) the case with pip since it replaces
distutils with setuptools, which does support it.

The other possible solution would be to parse python_requires,
but that requires a lot of work (see pip/_internals/utils/packaging.py)
and is an example of the reason setuptools was made in the first place.

When using python setup.py <command>, distutils.dist.Distribution
does not recognize python_requires (unlike setuptools) and will
issue an obnoxious warning that doesn't actually tell the user
that their Python version is not supported.

Note that this (might not be) the case with pip since it replaces
distutils with setuptools, which does support it.

The other possible solution would be to parse python_requires,
but that requires a lot of work (see pip/_internals/utils/packaging.py)
and is an example of the reason setuptools was made in the first place.
@bsolomon1124 bsolomon1124 force-pushed the distutils-ignore-python-requires branch from 9a4000b to 758a99f Compare May 28, 2020 20:28
@nitzmahone
Copy link
Member

This might be a non-issue (I think?), if we end up merging some form of #224 (which I'm leaning toward). I've added it to the 5.4 project, so hopefully we can figure out soon which way to go.

@nitzmahone
Copy link
Member

handled in #407

@nitzmahone nitzmahone closed this Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants