diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-10-22 13:16:50 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-10-22 14:03:18 -0400 |
| commit | 18b997db3e74d179af12175bff3d1a37006017fc (patch) | |
| tree | cd42411266377ede30d98843adc2c8a5c62b704b /setuptools/__init__.py | |
| parent | fee9d17d2a9113dbdc4bcfeca8b040af75bcf2f9 (diff) | |
| download | python-setuptools-git-18b997db3e74d179af12175bff3d1a37006017fc.tar.gz | |
Emit a SetuptoolsDeprecationWarning when setup_requires is used. Ref #2823.debt/deprecate-setup-requires
Diffstat (limited to 'setuptools/__init__.py')
| -rw-r--r-- | setuptools/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/__init__.py b/setuptools/__init__.py index 9d6f0bc0..a623262e 100644 --- a/setuptools/__init__.py +++ b/setuptools/__init__.py @@ -4,6 +4,7 @@ from fnmatch import fnmatchcase import functools import os import re +import warnings import _distutils_hack.override # noqa: F401 @@ -144,6 +145,11 @@ def _install_setup_requires(attrs): # Honor setup.cfg's options. dist.parse_config_files(ignore_option_errors=True) if dist.setup_requires: + warnings.warn( + "setup_requires is deprecated. Supply build " + "dependencies using PEP 517 pyproject.toml build-requires.", + SetuptoolsDeprecationWarning, + ) dist.fetch_build_eggs(dist.setup_requires) |
