diff options
author | Éric Araujo <merwok@netwok.org> | 2012-02-05 12:49:59 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2012-02-05 12:49:59 (GMT) |
commit | cd0d951a707c0dbecfd45c14b0e6ec7bf83103a2 (patch) | |
tree | 3e40b36621bfc2f4140b612d8a6d2ed01d1f9e39 /Lib/distutils/command | |
parent | be095b3b9857a5b949dd23b89dac5f5151b252d5 (diff) | |
parent | cd2a6033ac0bafd69a7cba2d132e092127acc895 (diff) | |
download | cpython-cd0d951a707c0dbecfd45c14b0e6ec7bf83103a2.zip cpython-cd0d951a707c0dbecfd45c14b0e6ec7bf83103a2.tar.gz cpython-cd0d951a707c0dbecfd45c14b0e6ec7bf83103a2.tar.bz2 |
Merge edits from 3.2 (#13716, #1040439, #2945, #13770, #6715)
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r-- | Lib/distutils/command/bdist_rpm.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/distutils/command/bdist_rpm.py b/Lib/distutils/command/bdist_rpm.py index 678e118..357eaa5 100644 --- a/Lib/distutils/command/bdist_rpm.py +++ b/Lib/distutils/command/bdist_rpm.py @@ -365,16 +365,28 @@ class bdist_rpm(Command): self.spawn(rpm_cmd) if not self.dry_run: + if self.distribution.has_ext_modules(): + pyversion = get_python_version() + else: + pyversion = 'any' + if not self.binary_only: srpm = os.path.join(rpm_dir['SRPMS'], source_rpm) assert(os.path.exists(srpm)) self.move_file(srpm, self.dist_dir) + filename = os.path.join(self.dist_dir, source_rpm) + self.distribution.dist_files.append( + ('bdist_rpm', pyversion, filename)) if not self.source_only: for rpm in binary_rpms: rpm = os.path.join(rpm_dir['RPMS'], rpm) if os.path.exists(rpm): self.move_file(rpm, self.dist_dir) + filename = os.path.join(self.dist_dir, + os.path.basename(rpm)) + self.distribution.dist_files.append( + ('bdist_rpm', pyversion, filename)) def _dist_path(self, path): return os.path.join(self.dist_dir, os.path.basename(path)) |