Skip to content

Ignore python_requires when installing with distutils#410

Closed
bsolomon1124 wants to merge 1 commit into
yaml:masterfrom
bsolomon1124:distutils-ignore-python-requires
Closed

Ignore python_requires when installing with distutils#410
bsolomon1124 wants to merge 1 commit into
yaml:masterfrom
bsolomon1124:distutils-ignore-python-requires

Conversation

@bsolomon1124
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants