diff options
| author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2021-09-09 14:25:43 +0300 |
|---|---|---|
| committer | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2021-09-09 15:07:11 +0300 |
| commit | 87848e1dcbe85e444b560a0aae419dc5ccd39b9e (patch) | |
| tree | 1199c23d7732dac553da84687e693e0f86db477e /setuptools/command | |
| parent | fdb818def5e262eee8edc4cc7ba1b79461096bfc (diff) | |
| download | python-setuptools-git-87848e1dcbe85e444b560a0aae419dc5ccd39b9e.tar.gz | |
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') |
