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.
Not sure if issue should be opened here or in PyOCD, which is what uses those two keys.
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-344
I'm not aware of a way to specify a minimum setuptools version in setup.py, are you @cmonr? A quick search didn't turn up anything either. We could just document something along the lines of:
Ensure you have the latest Python setuptools:
pip install --upgrade setuptools
Install mbed-cli:pip install mbed-cli
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.
@cmonr Are you happy to issue a PR?
Thank you for raising this issue. Please note we have updated our policies and
now only defects should be raised directly in GitHub. Going forward questions and
enhancements will be considered in our forums, https://forums.mbed.com/ . If this
issue is still relevant please re-raise it there.
This GitHub issue will now be closed.