Skip to content

Commit

Permalink
allow use of not-embedded pip
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby authored and neersighted committed Aug 31, 2022
1 parent 81c7d00 commit 0a5e4b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/poetry/utils/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ def run(self, bin: str, *args: str, **kwargs: Any) -> str | int:
return self._run(cmd, **kwargs)

def run_pip(self, *args: str, **kwargs: Any) -> int | str:
pip = self.get_pip_command(embedded=True)
pip = self.get_pip_command()
cmd = pip + list(args)
return self._run(cmd, **kwargs)

Expand Down
2 changes: 1 addition & 1 deletion tests/inspection/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def test_info_setup_missing_mandatory_should_trigger_pep517(
except PackageInfoError:
assert spy.call_count == 3
else:
assert spy.call_count == 2
assert spy.call_count == 1


def test_info_prefer_poetry_config_over_egg_info():
Expand Down

0 comments on commit 0a5e4b5

Please sign in to comment.