Skip to content

Commit f872940

Browse files
authored
Check for python executable instead of directory
1 parent f96a5a2 commit f872940

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)