diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-09-12 11:58:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-12 11:58:24 -0400 |
| commit | c9e9904dc3f83364450d0cadd5d3dd9996434c0c (patch) | |
| tree | e1798e565f94d609e6c67851c03b725fd727a03f /setuptools/command | |
| parent | 9d85f0be73da47433035d314ba9b7b9718fab75f (diff) | |
| parent | d7f9226c43a5bc335eb91fafb04ded655cd17fe2 (diff) | |
| download | python-setuptools-git-c9e9904dc3f83364450d0cadd5d3dd9996434c0c.tar.gz | |
Merge pull request #2780 from hugovk/deprecate-bdist_rpm
Deprecate bdist_rpm
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/bdist_rpm.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/setuptools/command/bdist_rpm.py b/setuptools/command/bdist_rpm.py index 0eb1b9c2..98bf5dea 100644 --- a/setuptools/command/bdist_rpm.py +++ b/setuptools/command/bdist_rpm.py @@ -1,4 +1,7 @@ import distutils.command.bdist_rpm as orig +import warnings + +from setuptools import SetuptoolsDeprecationWarning class bdist_rpm(orig.bdist_rpm): @@ -11,6 +14,12 @@ class bdist_rpm(orig.bdist_rpm): """ def run(self): + warnings.warn( + "bdist_rpm is deprecated and will be removed in a future " + "version. Use bdist_wheel (wheel packages) instead.", + SetuptoolsDeprecationWarning, + ) + # ensure distro name is up-to-date self.run_command('egg_info') |
