Minimum setuptools version needed
See original GitHub issueIf a user installs Python 2.7.11 (the minimum install req according to the docs), setuptools is incredibly outdated. Solution was to update setuptools with pip install -U setuptools
.
Stdout of issue:
c:\python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
c:\python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
CC @pan-, who found the problem with a fresh version of 2.7.11 on Windows.
Note
Not sure if issue should be opened here or in PyOCD, which is what uses those two keys.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
What is the proper way to specify min version of setuptools to ...
With setuptools having releases so often it'd be nice to be able to "require" certain setuptools version in the package.
Read more >Dependencies Management in Setuptools
Python requirement#. In some cases, you might need to specify the minimum required python version. This can be configured as shown in the...
Read more >PEP 518 – Specifying Minimum Build System Requirements ...
For the vast majority of Python projects that rely upon setuptools, the pyproject. toml file will be: [build-system] # Minimum requirements for the...
Read more >setup.py: require a recent version of setuptools before trying to ...
I just learned about PEP 518 -- Specifying Minimum Build System Requirements for Python Projects that addresses this exact problem.
Read more >Python minimal package setup.py
Cleanly handle Python metadata and prerequisites using setup.cfg.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@cmonr Are you happy to issue a PR?
What’s funny is that I think the standard way to do it now is to use
python_requires
.I think I’d prefer if we bumped the supported Python patch version instead, to the Py 2.7.x version that ships with a setuptools version that supports the keyword.
Now that I’ve had a break to revisit this, I’m wondering why I didn’t instead open the issue against PyOCD.