Skip to content

Commit

Permalink
re-run vendoring after removing patch
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius authored and oz123 committed Jul 23, 2023
1 parent 5618166 commit 492ed44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions pipenv/patched/pip/_internal/index/package_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def evaluate_link(self, link: Link) -> Tuple[LinkType, str]:
LinkType.format_unsupported,
f"unsupported archive format: {ext}",
)
if "binary" not in self._formats and ext == WHEEL_EXTENSION :
if "binary" not in self._formats and ext == WHEEL_EXTENSION:
reason = f"No binaries permitted for {self.project_name}"
return (LinkType.format_unsupported, reason)
if "macosx10" in link.path and ext == ".zip":
Expand Down Expand Up @@ -487,9 +487,7 @@ def get_applicable_candidates(

return sorted(filtered_applicable_candidates, key=self._sort_key)

def _sort_key(
self, candidate: InstallationCandidate,
) -> CandidateSortingKey:
def _sort_key(self, candidate: InstallationCandidate) -> CandidateSortingKey:
"""
Function to pass as the `key` argument to a call to sorted() to sort
InstallationCandidates by preference.
Expand Down Expand Up @@ -538,7 +536,6 @@ def _sort_key(
"{} is not a supported wheel for this platform. It "
"can't be sorted.".format(wheel.filename)
)
pri = -(support_num)
if self._prefer_binary:
binary_preference = 1
if wheel.build_tag is not None:
Expand Down
2 changes: 1 addition & 1 deletion pipenv/patched/pip/_internal/req/req_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def load_pyproject_toml(self) -> None:
self.unpacked_source_directory,
backend,
backend_path=backend_path,
python_executable=os.getenv('PIPENV_PYTHON_PATH', sys.executable)
python_executable=os.getenv('PIP_PYTHON_PATH', sys.executable)
)

def isolated_editable_sanity_check(self) -> None:
Expand Down

0 comments on commit 492ed44

Please sign in to comment.