summaryrefslogtreecommitdiffstats
path: root/Lib/ensurepip
diff options
context:
space:
mode:
authorLumír 'Frenzy' Balhar <frenzy.madness@gmail.com>2021-04-23 12:02:41 (GMT)
committerGitHub <noreply@github.com>2021-04-23 12:02:41 (GMT)
commit90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf (patch)
tree5279da33ebadd26e8040b394929cce64f861acab /Lib/ensurepip
parentb9ad88be0304136c3fe5959c65a5d2c75490cd80 (diff)
downloadcpython-90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf.zip
cpython-90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf.tar.gz
cpython-90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf.tar.bz2
bpo-41282: (PEP 632) Deprecate distutils.sysconfig (partial implementation of the PEP) (GH-23142)
This change: * merges `distutils.sysconfig` into `sysconfig` while keeping the original functionality and * marks `distutils.sysconfig` as deprecated https://bugs.python.org/issue41282
Diffstat (limited to 'Lib/ensurepip')
-rw-r--r--Lib/ensurepip/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/ensurepip/__init__.py b/Lib/ensurepip/__init__.py
index 7453070..0f1df6e 100644
--- a/Lib/ensurepip/__init__.py
+++ b/Lib/ensurepip/__init__.py
@@ -90,7 +90,8 @@ sys.path = {additional_paths or []} + sys.path
sys.argv[1:] = {args}
runpy.run_module("pip", run_name="__main__", alter_sys=True)
"""
- return subprocess.run([sys.executable, "-c", code], check=True).returncode
+ return subprocess.run([sys.executable, '-W', 'ignore::DeprecationWarning',
+ "-c", code], check=True).returncode
def version():