Hello nik,
nik gaffney <n...@fo.am> writes: > Hello, > > Is there a recommended way for a package to set environment variables > that should persist after install? The only way to do that is search paths. Those point to a folder in the profile you install to. No other mechanism is supported for packages to 'set' something in user's environment. See the search-paths and native-search-paths fields of packages. You haven't shared much details, so just a heads up - keep in mind that it's much better to wrap programs (script setting env vars that runs the program) rather than to export environment to user if that is possible. > > specifically, i've got a package definition using the > pyproject-build-system and would like to automatically add a var to the > users profile (or elsewhere?) that is defined before the installed > programme is first run. > > bzp Rutherther