Skip to content

Commit

Permalink
python: fix order of tasks vs enterShell
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Nov 23, 2024
1 parent e24baa3 commit 25268a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/languages/python.nix
Original file line number Diff line number Diff line change
Expand Up @@ -459,23 +459,23 @@ in
description = "Initialize Python virtual environment";
exec = initVenvScript;
exports = [ "PATH" "VIRTUAL_ENV" ];
after = [ "devenv:enterShell" ];
before = [ "devenv:enterShell" ];
};

"devenv:python:poetry" = lib.mkIf cfg.poetry.install.enable {
description = "Initialize Poetry";
exec = initPoetryScript;
exports = [ "PATH" ] ++ lib.optional cfg.poetry.activate.enable "VIRTUAL_ENV";
after = [ "devenv:enterShell" ];
before = lib.optional cfg.venv.enable "devenv:python:virtualenv";
before = [ "devenv:enterShell" ]
++ lib.optional cfg.venv.enable "devenv:python:virtualenv";
};

"devenv:python:uv" = lib.mkIf cfg.uv.sync.enable {
description = "Initialize uv sync";
exec = initUvScript;
exports = [ "PATH" ];
after = [ "devenv:enterShell" ];
before = lib.optional cfg.venv.enable "devenv:python:virtualenv";
before = [ "devenv:enterShell" ]
++ lib.optional cfg.venv.enable "devenv:python:virtualenv";
};
};

Expand Down

0 comments on commit 25268a1

Please sign in to comment.