Adding `host_exports` (like `run_exports` except between `build` & `host` only)
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- build-system
Research direction
No files, tests, or entry points are named. Start by comparing this proposal with the existing run_exports behavior and the linked examples. Done means a settled host_exports proposal covering the weak and strong cases, including their dependency propagation rules.
Written by the indexing model from the issue text.
Description
run_exports has been immensely helpful. Just to summarize it run_exports:
- Allows packages with knowledge of what they need to express it for easy downstream consumption
- Packages that are part of the build can add dependency to
runweakonly happens when the dependency is added tohost(notbuild)stronghappens when a dependency is added tobuildorhost
- Dependencies added can express ABI compatibility
- Packages that are part of the build can add dependency to
However there are still some cases that are not covered. In particular there are cases where a dependency added to build needs to add itself to host, but there is no need to add it to run (in fact this would often be better to avoid). IOW run_exports/strong does not meet this need. Some examples include:
- Header-only dependencies of a package
- Tighter alignment in
build&hostof compiler dependencies (like OpenMP) - Compiler runtime libraries that are statically linked (like
cudart) - Other compiler use cases
Solving these cases would involve a host_exports that allows adding other dependencies to host. Could imagine to use cases for a package providing host_exports
host_exports/weak(default)- Add dependencies to
hostif providing package is added tohost - Solves the header-only dependency case above for a library
- Add dependencies to
host_exports/strong(opt-in)- Add dependencies to
hostif providing package is inbuildorhost - Handles the compiler dependency alignment problem (with OpenMP)
- Handles statically linked compiler libraries (like
cudart) - Of most use for compiler use cases
- Add dependencies to
- Dominant language
- No language data
- Stars
- 35
- Forks
- 43
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from conda/ceps
-
Difficulty 2/5 1-3 hours Newbie friendliness 54/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 3/5 Half a day Newbie friendliness 28/100
-
Difficulty 5/5 Over a week Newbie friendliness 32/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NucleusFramework/Nucleus#1020 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 2 days
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfPossibly taken @fedonman claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
[bug] --affected remote with --base and --head finds no changes when the head is behind the baseOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
ardia-browser/ardia#6391 ·
Maintainers usually reply within 1 day