The scenario:
- We maintain some conda packages that are used internally in the company
- For some of these packages we have little knowledge of where and how the packages are used (the users download and install the packages on their local python installations)
- To better support the users and projects that consume the packages, we would like to know more about the usages of these packages.
I would like to display a message on stdout when the user installs a package:
Please let us know that you're using the xxx package: send an e-mail to [email protected], notify us on the teams channel, or update the wiki page ... directly. Thanks!
Question:
- What would be the easiest way to make
conda install
display a custom message upon successful package installation? Preferably something that works on both Linux and Windows.
This can be done with a
post-link
script in your recipe. As noted in the documentation, you must write your message to${PREFIX}/.messages.txt
, notstdout
orstderr
.Example recipe:
(For Windows, implement
post-link.bat
.)Build it:
Test Install: