question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Minimum setuptools version needed

See original GitHub issue

If 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
screamerbgcommented, Feb 1, 2019

@cmonr Are you happy to issue a PR?

1reaction
cmonrcommented, Jan 3, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found