diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-30 11:40:03 +0100 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-03-30 11:40:03 +0100 |
commit | 0407725e4bd3b01f41017b48aac1d57e3c6c3cf6 (patch) | |
tree | d8015d896053562d69b1283f045e76b4f3a53e9c /setuptools/command | |
parent | 1ed2b9fd0f11fb50bedbf6d700ba6f6ab763550e (diff) | |
download | external_python_setuptools-0407725e4bd3b01f41017b48aac1d57e3c6c3cf6.tar.gz external_python_setuptools-0407725e4bd3b01f41017b48aac1d57e3c6c3cf6.tar.bz2 external_python_setuptools-0407725e4bd3b01f41017b48aac1d57e3c6c3cf6.zip |
Remove excess whitespace; Normalize imports.
--HG--
extra : amend_source : 62f689b409b4645eda5f81b2604c50a84713ee52
Diffstat (limited to 'setuptools/command')
-rwxr-xr-x | setuptools/command/bdist_rpm.py | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/setuptools/command/bdist_rpm.py b/setuptools/command/bdist_rpm.py index 8c48da35..380fd196 100755 --- a/setuptools/command/bdist_rpm.py +++ b/setuptools/command/bdist_rpm.py @@ -3,8 +3,9 @@ # them, another kludge to allow you to build old-style non-egg RPMs, and # finally, a kludge to track .rpm files for uploading when run on Python <2.5. +import sys +import os from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm -import sys, os class bdist_rpm(_bdist_rpm): @@ -27,25 +28,13 @@ class bdist_rpm(_bdist_rpm): self.run_command('egg_info') # ensure distro name is up-to-date _bdist_rpm.run(self) - - - - - - - - - - - - def _make_spec_file(self): version = self.distribution.get_version() rpmversion = version.replace('-','_') spec = _bdist_rpm._make_spec_file(self) line23 = '%define version '+version line24 = '%define version '+rpmversion - spec = [ + spec = [ line.replace( "Source0: %{name}-%{version}.tar", "Source0: %{name}-%{unmangled_version}.tar" @@ -60,23 +49,3 @@ class bdist_rpm(_bdist_rpm): ] spec.insert(spec.index(line24)+1, "%define unmangled_version "+version) return spec - - - - - - - - - - - - - - - - - - - - |