Skip to content

Commit 3886ceb

Browse files
authored
Check for Python executable file in penv_setup
1 parent 3ea5eb0 commit 3886ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/penv_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def setup_pipenv_in_package(env, penv_dir):
8989
Returns:
9090
str or None: Path to uv executable if uv was used, None if python -m venv was used
9191
"""
92-
if not os.path.exists(penv_dir):
92+
if not os.path.isfile(get_executable_path(penv_dir, "python")):
9393
# Attempt virtual environment creation using uv package manager
9494
uv_success = False
9595
uv_cmd = None

0 commit comments

Comments
 (0)