diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-30 12:16:15 +0100 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-30 12:16:15 +0100 |
commit | 58eb4b2b034d90f45b3daa12900f24a390bb4782 (patch) | |
tree | a37e2ce9cd250fedbe518b8ea43992c1044c1d1e /setuptools/command/bdist_rpm.py | |
parent | ee51f57c4616357bb032e61a726a34cda0e71a66 (diff) | |
download | external_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-x | setuptools/command/bdist_rpm.py | 13 |
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 |