Broken with current setuptools version?
See original GitHub issueI installed pyroma
using pipx
for Python 3.9 and then tried to use it on zopefoundation/BTrees
:
$ pipx install pyroma
$ cd BTrees
$ pyroma .
------------------------------
Checking .
/.../python3.9/site-packages/_distutils_hack/__init__.py:17: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
warnings.warn(
/.../python3.9/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
/.../python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
invalid command name '.'
$ echo $?
1
Trying to use a package name from PyPI leads to:
$ pyroma BTrees
------------------------------
Checking BTrees
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /pypi/BTrees/json HTTP/1.1" 200 109675
Found BTrees version 4.10.0
Downloading BTrees-4.10.0.tar.gz to verify distribution
Starting new HTTPS connection (1): files.pythonhosted.org:443
https://files.pythonhosted.org:443 "GET /packages/7b/a5/38cb37e0afae6b00392062b78364033354a34c1f73c879e5eeaabf57f709/BTrees-4.10.0.tar.gz HTTP/1.1" 200 195139
/.../python3.9/site-packages/_distutils_hack/__init__.py:17: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
warnings.warn(
/.../python3.9/site-packages/_distutils_hack/__init__.py:30: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
/.../python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'BTrees'
$ echo $?
1
Installed packages in the venv:
$ bin/python -m pip freeze --all
certifi==2021.10.8
charset-normalizer==2.0.12
docutils==0.18.1
idna==3.3
pip==22.0.4
Pygments==2.11.2
pyroma==3.2
requests==2.27.1
setuptools==60.9.3
urllib3==1.26.8
wheel==0.37.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
[BUG] latest setuptools release (60.3.0) broke pip? · Issue #3002
The new version of setuptools that was just released seems to have broken pip? After upgrading to latest setuptools, running pip commands is ......
Read more >Why is my setuptools not working in Python 3.9?
I have done that successfully but I still get the module not found error. It's at version 50.3.0. I completely uninstalled Python and ......
Read more >2. Writing the Setup Script — Python 3.11.1 documentation
The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils. The main purpose of the...
Read more >setuptools 3.7.1 - PyPI
Easily download, build, install, upgrade, and uninstall Python packages.
Read more >Dependencies Management in Setuptools
In previous versions of setuptools , this used to be accomplished with the ... so that packages depending on that feature don't break...
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 FreeTop 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
Top GitHub Comments
OK, 4.0b1 solves this issue. I’m keeping this issue open as there are discussions about PEP621 support in here.
Thank you for fixing this issue. I can confirm that both variants I had problems with are fixed by
4.0b1
.