fix(utils): always use uv for submit when nix submit cmd unavailable
Problem: In a dev checkout on NixOS, `_nix_submit_cmd` is nil but `_nix_python` is set from the discovery cache. `get_python_submit_cmd` fell through to `get_python_cmd`, which returned the nix-built Python — a derivation that deliberately excludes `scrapling`. Solution: Fall back to `uv run` instead of `get_python_cmd` so submit always gets a full dependency environment when `_nix_submit_cmd` is nil.
This commit is contained in:
parent
2854f5bb23
commit
128ff04621
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ function M.get_python_submit_cmd(module, plugin_path)
|
||||||
if _nix_submit_cmd then
|
if _nix_submit_cmd then
|
||||||
return { _nix_submit_cmd, 'run', '--directory', plugin_path, '-m', 'scrapers.' .. module }
|
return { _nix_submit_cmd, 'run', '--directory', plugin_path, '-m', 'scrapers.' .. module }
|
||||||
end
|
end
|
||||||
return M.get_python_cmd(module, plugin_path)
|
return { 'uv', 'run', '--directory', plugin_path, '-m', 'scrapers.' .. module }
|
||||||
end
|
end
|
||||||
|
|
||||||
local python_env_setup = false
|
local python_env_setup = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue