-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
add MACOSX_DEPLOYMENT_TARGET to same zip as c_stdlib_version #5669
Conversation
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 ( |
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.
We should simplify this and not impose CUDA-related restrictions to non-CUDA configs.
I don't follow your request @mbargull. Can you be a bit more explicit about what you mean? FWIW, I think the cuda restrictions on the compilers that were here (and might still be) should go away once we move the min cuda version high enough. I forget the details. Others probably recall them. |
Also I suspect the issue you are objecting too should be in another PR, not this one. We're just trying to get stdlib running and don't want to do a bunch of other stuff at the same time. |
I'm confused; GitHub swallowed my code comment/suggestion... let me retype this. Then things should be clearer. |
recipe/conda_build_config.yaml
Outdated
@@ -165,6 +165,7 @@ zip_keys: | |||
- cxx_compiler_version # [unix] | |||
- fortran_compiler_version # [unix] | |||
- c_stdlib_version # [unix] | |||
- MACOSX_DEPLOYMENT_TARGET # [osx] |
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.
There's no need to put the c_stdlib_version
(and related keys) into this zip key.
This tight coupling is only needed for the CUDA stuff.
We should do something like
+ - # [osx]
+ - c_stdlib_version # [osx]
+ - MACOSX_DEPLOYMENT_TARGET # [osx]
+# For CUDA, c_stdlib_version/cdt_name is zipped below with the compilers.
+ - # [linux and os.environ.get("CF_CUDA_ENABLED", "False") != "True"]
+ - c_stdlib_version # [linux and os.environ.get("CF_CUDA_ENABLED", "False") != "True"]
+ - cdt_name # [linux and os.environ.get("CF_CUDA_ENABLED", "False") != "True"]
- # [unix]
- c_compiler_version # [unix]
- cxx_compiler_version # [unix]
- fortran_compiler_version # [unix]
- - c_stdlib_version # [unix]
- - MACOSX_DEPLOYMENT_TARGET # [osx]
+ - c_stdlib_version # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"]
- cdt_name # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"]
- cuda_compiler # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"]
- cuda_compiler_version # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"]
- docker_image # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True" and os.environ.get("BUILD_PLATFORM", "").startswith("linux-")]
or
+# For CUDA, c_stdlib_version/cdt_name is zipped below with the compilers.
+ - # [osx or (linux and os.environ.get("CF_CUDA_ENABLED", "False") != "True")]
+ - c_stdlib_version # [osx or (linux and os.environ.get("CF_CUDA_ENABLED", "False") != "True")]
+ - MACOSX_DEPLOYMENT_TARGET # [osx]
+ - cdt_name # [linux and os.environ.get("CF_CUDA_ENABLED", "False") != "True"]
- # [unix]
- c_compiler_version # [unix]
- cxx_compiler_version # [unix]
- fortran_compiler_version # [unix]
- - c_stdlib_version # [unix]
- - MACOSX_DEPLOYMENT_TARGET # [osx]
+ - c_stdlib_version # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"]
- cdt_name # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"]
- cuda_compiler # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"]
- cuda_compiler_version # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"]
- docker_image # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True" and os.environ.get("BUILD_PLATFORM", "").startswith("linux-")]
(Sorry, GitHub UI didn't allow me to put this into a proper suggestion
since it touches things outside of this "hunk".)
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.
I see. Let's make a new PR for that. We've had trouble with these zips and proper rendering. It'll be easier to test as two steps.
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.
If you want.. That PR would then be a requisite for this PR then; i.e., we should not zip MACOSX_DEPLOYMENT_TARGET
with the compiler versions in any case.
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.
The macosx deployment target being set explicitly will be deprecated behavior after stdlib is done. The zipping here is to allow for a transition period as far as I understand it.
Ah good but please move this to another pr. We are doing two unrelated things here. I'm happy to help with the cuda stuff elsewhere. It will be easier to debug issues if we work on one thing at a time. |
I don't follow why precisely the extra changes are needed but I'm happy to defer to @h-vetinari and @mbargull to make the call. |
See gh-5672. - # [osx]
- c_stdlib_version # [osx]
- MACOSX_DEPLOYMENT_TARGET # [osx] for macOS. |
We impose artificial restrictions if we zip |
In #5592, I had said that I want to avoid putting |
Closing this as obsolete. Thanks for your help @mbargull! 🙏 |
Hi! This is the friendly automated conda-forge-linting service. I was trying to look for recipes to lint for you, but it appears we have a merge conflict. Please ping the 'conda-forge/core' team (using the @ notation in a comment) if you believe this is a bug. |
Ah, I had missed that bit, sorry. Coming right up. |
Suggested-By: Marcel Bargull <marcel.bargull@udo.edu>
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 ( |
This PR now breaks the current state of conda-forge/conda-smithy#1889, for reasons I don't fully understand
|
Querying this: https://github.com/search?q=org%3Aconda-forge%20path%3A%2F(%5E%7C%5C%2F)conda_build_config%5C.yaml%24%2F%20MACOSX_DEPLOYMENT_TARGET&type=code
Both of which will break once we put |
This is fixed now as of the last commit in that PR.
Extending your query a bit, there are very few cases that have multiple values of |
Sounds good. Since you are a maintainer there, then I consider this as being "addressed" since "at least one member of all affected parties has been notified" ;). Is this good to merge then? (I think yes; feel free to merge if you agree.) |
So I tried doing this in conda-forge/cctools-and-ld64-feedstock#68, but I'm beginning to wonder now if the zip here makes sense at all, in the sense that it only zips singleton values, but we cannot anymore do something like cctools was doing, because now that So I wonder what we gain from this PR after all? Yes, it allows us to be sure that Overall I think it does more harm than good, and we should revert it... |
Go for it! |
As discussed in conda-forge/conda-smithy#1889
CC @beckermr