by bragr · 3y ago · 0 comments
# venv.sh
venv="$1"
shift
. "$venv/bin/activate"
"$@"
Then in the Makefile I do: VENV := venv.sh ./venv
install-reqs:
${VENV} pip -r requirements.txtI've used make with conda, for example, for the last five years with no env issues at all, so some clarity or specific problem cases would help.
All of these problems are solvable of course, but at what level of effort and for what benefit? And you pay all these costs every time you want to change something, especially if you've got to explain all the hacks to someone new, and you always run the risk that it works for you but not in a clean environment.