Document recommended method(s) to set environment variables when environments containing a package are activated #5035
Labels
backlog
issue has been triaged but has not been earmarked for any upcoming release
good first issue
great for new contributors, code change is envisioned to be trivial/relatively straight-forward
source::community
catch-all for issues filed by community members
type::documentation
request for improved documentation
I help maintain a Conda Forge feedstock, and a user of the package reported problems using the package with Fish. The root cause was our activation scripts not being compatible with their shell, and the docs include a prescient warning:
I'm trying to understand what alternatives are available to me, and I came across some pre-existing discussion which included mention of a mechanism to set envvars using a JSON key-value mapping.
I found the PR that introduced this functionality, but I haven't found any documentation. Is this mechanism deliberately un-documented because it's unsupported? Or is it anticipated that the recipe format will be updated to support this feature to provide a more mature API (#4833)?
After consideration of the above, I'd be happy to help document what it would look like to create this JSON mapping at build-time using a script. I think it would be especially useful to update the Activate Scripts page which I quoted above to point out preferred mechanism(s).
Thanks for your consideration!
PS: While I'm in there, I see the prose on this doc page includes "The installed scripts are recommended to be prefixed by the package name and a separating -.", but both examples use an
_
instead. Which is the true intent of the docs? I'll fix that too :)The text was updated successfully, but these errors were encountered: