diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-08-03 11:52:37 -0700 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-08-03 18:37:57 -0700 |
commit | a230b18ebed7da4370670b60ac64e4369be15abe (patch) | |
tree | a1ebf05e5e826580465f1d55afaf74ce0c322568 /pkgs/development/python-modules/dvc/dvc-daemon.patch | |
parent | d85f641287e4f632e9ee3708f0af6d8a41380e36 (diff) | |
download | nixpkgs-a230b18ebed7da4370670b60ac64e4369be15abe.tar nixpkgs-a230b18ebed7da4370670b60ac64e4369be15abe.tar.gz nixpkgs-a230b18ebed7da4370670b60ac64e4369be15abe.tar.bz2 nixpkgs-a230b18ebed7da4370670b60ac64e4369be15abe.tar.lz nixpkgs-a230b18ebed7da4370670b60ac64e4369be15abe.tar.xz nixpkgs-a230b18ebed7da4370670b60ac64e4369be15abe.tar.zst nixpkgs-a230b18ebed7da4370670b60ac64e4369be15abe.zip |
dvc: move to python-modules since dvclive depends on it
This follows the best practices in the documentation.
Diffstat (limited to 'pkgs/development/python-modules/dvc/dvc-daemon.patch')
-rw-r--r-- | pkgs/development/python-modules/dvc/dvc-daemon.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dvc/dvc-daemon.patch b/pkgs/development/python-modules/dvc/dvc-daemon.patch new file mode 100644 index 00000000000..65ba630f3b8 --- /dev/null +++ b/pkgs/development/python-modules/dvc/dvc-daemon.patch @@ -0,0 +1,18 @@ +diff --git a/dvc/daemon.py b/dvc/daemon.py +index 9854a0e1..fefdd613 100644 +--- a/dvc/daemon.py ++++ b/dvc/daemon.py +@@ -103,11 +103,8 @@ def daemon(args): + logger.debug("skipping launching a new daemon.") + return + +- cmd = ["daemon", "-q"] + args +- +- env = fix_env() +- file_path = os.path.abspath(inspect.stack()[0][1]) +- env["PYTHONPATH"] = os.path.dirname(os.path.dirname(file_path)) ++ cmd = [ "@dvc@" , "daemon", "-q"] + args ++ env = os.environ.copy() + env[DVC_DAEMON] = "1" + + _spawn(cmd, env) |