Skip to content

Commit

Permalink
Merge pull request #11997 from pfmoore/vendoring-setuptools
Browse files Browse the repository at this point in the history
Vendor setuptools 67.7.2
  • Loading branch information
pfmoore committed Apr 25, 2023
2 parents 51afe45 + cbc92fd commit bc7621a
Show file tree
Hide file tree
Showing 5 changed files with 344 additions and 292 deletions.
1 change: 1 addition & 0 deletions news/setuptools.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade setuptools to 67.7.2
9 changes: 9 additions & 0 deletions src/pip/_internal/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import logging
import os
import sys
import warnings
from typing import List, Optional

from pip._internal.cli.autocompletion import autocomplete
Expand Down Expand Up @@ -46,6 +47,14 @@ def main(args: Optional[List[str]] = None) -> int:
if args is None:
args = sys.argv[1:]

# Suppress the pkg_resources deprecation warning
# Note - we use a module of .*pkg_resources to cover
# the normal case (pip._vendor.pkg_resources) and the
# devendored case (a bare pkg_resources)
warnings.filterwarnings(
action="ignore", category=DeprecationWarning, module=".*pkg_resources"
)

# Configure our deprecation warnings to be sent through loggers
deprecation.install_warning_logger()

Expand Down

0 comments on commit bc7621a

Please sign in to comment.