-
-
Notifications
You must be signed in to change notification settings - Fork 49
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 setuptools from run_constrained #108
Conversation
Setuptools is a requirement of conda, including it in both requirements and run_constrained can causes conda to drop in as a direct requirement.
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
Having a package in both requirements and run_constrained can cause issues. conda/conda#9337 and related issues are likely a result of having setuptools in both places. |
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.
Has to be fixed upstream, of course.
But having the same entry in requirements/run
and requirements/run_constrained
is pointless in any case, obviously => LGTM!
I've also hotfixed the current packages in |
Upstream as in handling it in upstream code -- but fixing the upstream recipe makes sense too ;). |
My understanding is that when a requirement appears in both the requirements/dependencies and run_constrained/constraints section the expected behavior is to treat the requirement as optional. This was done for backward compatibility with older version of conda which do not support constrained optional dependency. The 4.4.0 release notes have more details on this:
My take is that conda is interpreting conda's dependency information correctly it is just incorrect. So the package needs fixing not conda itself. |
I.... didn't even know that! I mean, it's not really intuitive, but it somewhat makes sense. I'm just baffled I didn't know... Wish we had some kind of specification document... |
I only had a recollection about the behavior from discussions I had with Kale about the details when 4.4.0 was coming out and I was confused on how it all was expected to work. I had to search the changelog for the specifics. I agree completely that conda needs a specification document on expected behaviors, standard, conventions, etc. |
Setuptools is a requirement of conda, including it in both requirements
and run_constrained can causes conda to drop in as a direct requirement.
Checklist
0
(if the version changed)conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)