Skip to content

Commit

Permalink
[WIP] pip-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
georgek committed May 28, 2024
1 parent ab2cc23 commit 5ada75b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions piptools/scripts/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ def cli(
if config:
log.debug(f"Using pip-tools configuration defaults found in '{config !s}'.")

current_python = sys.executable
log.debug(f"{current_python=}")
env_python = shutil.which("python")
log.debug(f"{env_python=}")

if python_executable is None and current_python != env_python:
# pip-tools probably installed globally (e.g. via pipx)
python_executable = env_python

if python_executable:
_validate_python_executable(python_executable)

Expand Down

0 comments on commit 5ada75b

Please sign in to comment.