dvc: instantiate env to a copy of os.environ
this line removes the dvc utility fix_env which works around
pyenv (irrelevant for nix I think), fix_env instantiates env
as a copy of os.environ is its env argument is None, so I think
this behaviour is close to what the dvc authors intended.
commitc56400aa3ecdc6c09c153b4103d24b133f20fb03
authorcfhammill <cfhammill@gmail.com>
dateMon 28 Mar 2022, 20:09 (5 years ago)
parentf90f533
pkgs/applications/version-management/dvc/dvc-daemon.patch+1−1
@@ -12,7 +12,7 @@ index 9854a0e1..fefdd613 100644
1212- file_path = os.path.abspath(inspect.stack()[0][1])
1313- env["PYTHONPATH"] = os.path.dirname(os.path.dirname(file_path))
1414+ cmd = [ "@dvc@" , "daemon", "-q"] + args
15−+ env = None
15++ env = os.environ.copy()
1616 env[DVC_DAEMON] = "1"
1717
1818 _spawn(cmd, env)