Conda activate on install

0 views
Skip to first unread message

Daniel Brown

unread,
Jun 23, 2017, 4:15:21 AM6/23/17
to 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

unread,
Jun 25, 2017, 11:46:38 PM6/25/17
to 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.

Reply all
Reply to author
Forward
0 new messages