-
-
Notifications
You must be signed in to change notification settings - Fork 321
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
Remove incorrect dependencies from setup.cfg
#4443
Conversation
I'm not sure if a ChangeLog entry is appropriate since it tackles build details and should not have any user-facing changes. |
Yes. CHANGES.txt should have both user and non-user facing items. Same with RELEASE.txt. |
Remove the `install_requires` on `setuptools`. This key is used to specify packages that are needed at runtime. SCons nowhere in its code does import `setuptools` or `pkg_resources`. Remove the `setup_requires` on `build`. `build` is a frontend package and a detail of how the build is invoked, while `setup_requires` are used to specify backend dependencies (i.e. packages that are installed after `build` is invoked). Remove the `setup_requires` on `setuptools`. It is a key specific to setuptools, so for it to be interpreted `setuptools` need to be installed already. The actual backend dependency on `setuptools` is specified in `pyproject.toml`, so the dependency is entirely redundant.
d0140f8
to
e27b28c
Compare
I've added the changelog entry and release note. |
install_requires = setuptools | ||
setup_requires = | ||
setuptools | ||
build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this ('build') be added to pyproject.toml's
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools"]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it is a frontend. It is not used on the backend because it's build
installing stuff from requires
.
Thanks for the PR Merging! |
Thanks! |
@mwichmann Is it possible to get this change in a 4.6.1 sooner than 4.7? The setuptools dependency is a bit of a bother for Python 3.12 users. Thanks! |
I believe we're very close to a 4.7. @bdbaddog - thoughts? |
Remove the
install_requires
onsetuptools
. This key is used to specify packages that are needed at runtime. SCons nowhere in its code does importsetuptools
orpkg_resources
.Remove the
setup_requires
onbuild
.build
is a frontend package and a detail of how the build is invoked, whilesetup_requires
are used to specify backend dependencies (i.e. packages that are installed afterbuild
is invoked).Remove the
setup_requires
onsetuptools
. It is a key specific to setuptools, so for it to be interpretedsetuptools
need to be installed already. The actual backend dependency onsetuptools
is specified inpyproject.toml
, so the dependency is entirely redundant.Contributor Checklist:
CHANGES.txt
(and read theREADME.rst
)