summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2021-09-09 14:25:43 +0300
committerHugo van Kemenade <hugovk@users.noreply.github.com>2021-09-09 15:07:11 +0300
commit87848e1dcbe85e444b560a0aae419dc5ccd39b9e (patch)
tree1199c23d7732dac553da84687e693e0f86db477e /setuptools/command
parentfdb818def5e262eee8edc4cc7ba1b79461096bfc (diff)
downloadpython-setuptools-git-87848e1dcbe85e444b560a0aae419dc5ccd39b9e.tar.gz
Deprecate bdist_rpm
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/bdist_rpm.py9
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')