-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup.py
setup_requires
seems useless now?
#5869
Comments
We do (unofficially) support editable installs for development purposes so I'm slightly inclined towards leaving this. Is there any signaling from pip, et al around the future of editable? |
The last thing I heard was at PyCon 2019 — a few folks at PyPA sprint were supposed to work on a prototype on setuptools and pip sides that could then make it into a PEP (probably separate from the 517, I don't remember). But I don't think that ended up being implemented. As for leaving the |
Yup, I'm getting this error when installing the latest cryptography 3.4.6 where it's a dependency of another package:
|
Have you followed the instructions about making sure you're running a
recent version of pip?
…On Thu, Mar 4, 2021 at 6:48 PM Damian Fuentes ***@***.***> wrote:
Yup, I'm getting this error when installing the latest cryptography 3.4.6
where it's a dependency of another package:
Collecting cryptography>=1.3.4 (from requests[security]<2.19.0,>=2.18.4->sentry==8.22.0)
Downloading https://files.pythonhosted.org/packages/fa/2d/2154d8cb773064570f48ec0b60258a4522490fcb115a6c7c9423482ca993/cryptography-3.4.6.tar.gz (546kB)
Complete output from command python setup.py egg_info:
=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:
Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-kHcAYA/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ImportError: No module named setuptools_rust
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5869 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBF46YQUKVB4FCRUQWTTCAL4TANCNFSM4YI2UTOA>
.
--
All that is necessary for evil to succeed is for good people to do nothing.
|
The error tells you how to resolve the problem: upgrade your pip. This issue is about a separate setuptools_rust nuance. |
Was about to attempt that next. Thanks for confirming. |
Just to confirm, this did work. Thanks! |
#6465 removed this |
I noticed that
setup.py
checks forsetuptools_rust
early and fails long beforesetuptools.setup()
has a chance to attempt installing things fromsetup_requires
. This is not a problem when PEP517 is used but than the wholesetup_requires
is unnecessary. Is there a desire to support old pip or editable installs that bypasspyproject.toml
? Should this just be removed?The text was updated successfully, but these errors were encountered: