-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Docs issue: setup_requires
is explained as problematic in cookbook, but no comparable replacement appears to be given
#6345
Comments
setup_requires
is explained as deprecated in cookbook, but no comparable replacement appears to be givensetup_requires
is explained as problematic in cookbook, but no comparable replacement appears to be given
I'm wondering, is it (Edited by @uranusjr to correct the file name.) |
What is The equivalent of BTW, the link you posted is to an extremely old version of the docs. The current version is here (but it says the same, so your point remains). Documentation PRs to clarify would be welcome. |
@pfmoore yeah I meant |
Personnally i'm very happy with setup_requires="setupmeta" which takes care of the setup.py boilerplate for us. Now if this were to become something that would also require configuration in a new file for distutils configurations, then we'd be defeated in our purpose to eliminate boilerplate code using setup_requires. |
What is |
@Jonast |
|
Hello , can i get assigned for this issue ? |
@Joe-Sin7h Sure, please feel free to go ahead! |
Example pyproject.toml:
IMHO using pyproject.toml:
|
The problems with |
I believe setuptools maintainers still prefer people to not use |
Indeed
|
This warning is aimed at the users of pip - people who use pip to install packages rather than package authors. The warning is given in the context of the section "Ensuring Repeatability". The section talks about different options (pinned version numbers, hash-checking and |
I'm not against PEP-518 or against what pip is currently doing/recommending/warning about, but that particular quote must be from a time before setuptools 42.0, since it continues with |
@pradyunsg is looking to fix this through #9475 |
This is now covered within https://pip.pypa.io/en/stable/reference/build-system/#controlling-setup-requires. There's also cross links to that section in https://pip.pypa.io/en/stable/topics/repeatable-installs/ (at the end) and https://pip.pypa.io/en/stable/topics/secure-installs/#repeatable-installs. |
https://pip.readthedocs.io/en/1.4.1/cookbook.html#controlling-setup-requires
This section and various other sources (like cython/cython#2730 (comment) and other helpful comments) say that
setup_requires
has issues due to its reliance oneasy_install
and should be avoided.However, the above cookbook section doesn't actually appear to offer any alternative! I think if you want people to stop using it, this section should really show one. All it appears to do is to show how to work around the package index options not working while still using
setup_requires
, or am I misunderstanding this section completely?It would be incredibly helpful if that cookbook section could be expanded to add a demonstration of a full example of a modern
setup_requires
-equivalent, how it should be done if one wants to avoid deprecated functionality. (or if that is already somewhere else in the cookbook, maybe it would be wise to add a link/reference here?) Because it's not obvious at all to me how to do it 😕PS: you're doing great work this is just a minor bump I found worth reporting!
The text was updated successfully, but these errors were encountered: