Skip to content

Commit

Permalink
remove hardcoded py3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
renxida committed Jan 9, 2025
1 parent 35eb2d2 commit e4f0e48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build_tools/pkgci/setup_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ def main(args):
print(f"Creating venv at {str(venv_path)}")

subprocess.check_call([sys.executable, "-m", "pip", "install", "uv"])
subprocess.check_call(["uv", "venv", str(venv_path), "--python", "3.11"])
subprocess.check_call(
["uv", "venv", str(venv_path), "--python", sys.executable]
)
python_exe = find_venv_python(venv_path)
if not python_exe:
raise RuntimeError("Error creating venv")
Expand Down

0 comments on commit e4f0e48

Please sign in to comment.