aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/bdist_rpm.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-03-30 12:16:15 +0100
committerJason R. Coombs <jaraco@jaraco.com>2014-03-30 12:16:15 +0100
commit58eb4b2b034d90f45b3daa12900f24a390bb4782 (patch)
treea37e2ce9cd250fedbe518b8ea43992c1044c1d1e /setuptools/command/bdist_rpm.py
parentee51f57c4616357bb032e61a726a34cda0e71a66 (diff)
downloadexternal_python_setuptools-58eb4b2b034d90f45b3daa12900f24a390bb4782.tar.gz
external_python_setuptools-58eb4b2b034d90f45b3daa12900f24a390bb4782.tar.bz2
external_python_setuptools-58eb4b2b034d90f45b3daa12900f24a390bb4782.zip
Replace outdated deprecating comments with a proper doc string.
Diffstat (limited to 'setuptools/command/bdist_rpm.py')
-rwxr-xr-xsetuptools/command/bdist_rpm.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/setuptools/command/bdist_rpm.py b/setuptools/command/bdist_rpm.py
index a2258401..c13732fa 100755
--- a/setuptools/command/bdist_rpm.py
+++ b/setuptools/command/bdist_rpm.py
@@ -1,10 +1,15 @@
-# This is just a kludge so that bdist_rpm doesn't guess wrong about the
-# distribution name and version, if the egg_info command is going to alter
-# them, another kludge to allow you to build old-style non-egg RPMs.
-
from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm
class bdist_rpm(_bdist_rpm):
+ """
+ Override the default bdist_rpm behavior to do the following:
+
+ 1. Run egg_info to ensure the name and version are properly calculated.
+ 2. Always run 'install' using --single-version-externally-managed to
+ disable eggs in RPM distributions.
+ 3. Replace dash with underscore in the version numbers for better RPM
+ compatibility.
+ """
def run(self):
# ensure distro name is up-to-date