summaryrefslogtreecommitdiff
path: root/setuptools/installer.py
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-01-06 17:05:16 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-01-06 17:05:16 +0000
commit71554cb5562ac6f0dfda81f87a4fc55e400aed97 (patch)
tree57629342dd041877f38a5062f84d994b6d7446da /setuptools/installer.py
parente773611d2d88d46872d3f5b1a84290955034c215 (diff)
parent732731afd1e16145f9bf197b28b1e199b3f1fe9e (diff)
downloadpython-setuptools-git-71554cb5562ac6f0dfda81f87a4fc55e400aed97.tar.gz
Merge remote-tracking branch 'upstream/main' into patch-1
Diffstat (limited to 'setuptools/installer.py')
-rw-r--r--setuptools/installer.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/setuptools/installer.py b/setuptools/installer.py
index 57e2b587..b7096df1 100644
--- a/setuptools/installer.py
+++ b/setuptools/installer.py
@@ -3,11 +3,13 @@ import os
import subprocess
import sys
import tempfile
+import warnings
from distutils import log
from distutils.errors import DistutilsError
import pkg_resources
from setuptools.wheel import Wheel
+from ._deprecation_warning import SetuptoolsDeprecationWarning
def _fixup_find_links(find_links):
@@ -22,6 +24,11 @@ def fetch_build_egg(dist, req): # noqa: C901 # is too complex (16) # FIXME
"""Fetch an egg needed for building.
Use pip/wheel to fetch/build a wheel."""
+ warnings.warn(
+ "setuptools.installer is deprecated. Requirements should "
+ "be satisfied by a PEP 517 installer.",
+ SetuptoolsDeprecationWarning,
+ )
# Warn if wheel is not available
try:
pkg_resources.get_distribution('wheel')