Change python hook to stay in cwd on deps installation

This commit is contained in:
Youhei Sakurai 2024-10-14 11:34:26 +09:00
parent 837d6172bb
commit e77f4469b5
No known key found for this signature in database
GPG key ID: B162D78918AF40D3

View file

@ -207,8 +207,11 @@ def install_environment(
python = norm_version(version)
if python is not None:
venv_cmd.extend(('-p', python))
install_cmd = ('python', '-mpip', 'install', '.', *additional_dependencies)
install_cmd = ('python', '-mpip', 'install', '.')
cmd_output_b(*venv_cmd, cwd='/')
with in_env(prefix, version):
lang_base.setup_cmd(prefix, install_cmd)
if additional_dependencies:
cmd_output_b(*install_cmd[:-1], *additional_dependencies)