Conda activate on install

已查看 0 次
跳至第一个未读帖子

Daniel Brown

未读,
2017年6月23日 04:15:212017/6/23
收件人 conda - Public
Hi all,

I have some C binary I want to distribute via conda, it requires some environment variables being set properly to work. So far my package on install creates the activate.d files fine, but this requires the user reactivate their environment to load the new variables.

Does anyone know if it is possible to either display a message when a package is installed to the user asking them to reload, or if it is possible to tell conda to run the new activate.d scripts?

Thanks for any help!

Nehal J Wani

未读,
2017年6月25日 23:46:382017/6/25
收件人 Daniel Brown、conda - Public
Hi Daniel,

(i) You could create a post-link.sh file with the following contents in the recipe:
$ cat post-link.sh
#!/bin/bash
cat << EOF >> "${PREFIX}"/.messages.txt
   Hi there! Please reactivate the environment after installing this package.
   - Your friendly package manager
EOF

OR



Cheers!

Nehal J Wani

--
You received this message because you are subscribed to the Google Groups "conda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda+un...@continuum.io.
To post to this group, send email to co...@continuum.io.
Visit this group at https://groups.google.com/a/continuum.io/group/conda/.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/conda/c36c3fc4-8322-453c-9668-b6134d8aa609%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

回复全部
回复作者
转发
0 个新帖子