mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Add the upload command. Make all dist commands register their
outputs with the distribution object.
This commit is contained in:
parent
e6c430dffe
commit
55f1bb8bfa
8 changed files with 56 additions and 2 deletions
|
|
@ -297,12 +297,14 @@ class bdist_rpm (Command):
|
|||
|
||||
# Make a source distribution and copy to SOURCES directory with
|
||||
# optional icon.
|
||||
saved_dist_files = self.distributuion.dist_files[:]
|
||||
sdist = self.reinitialize_command('sdist')
|
||||
if self.use_bzip2:
|
||||
sdist.formats = ['bztar']
|
||||
else:
|
||||
sdist.formats = ['gztar']
|
||||
self.run_command('sdist')
|
||||
self.distribution.dist_files = saved_dist_files
|
||||
|
||||
source = sdist.get_archive_files()[0]
|
||||
source_dir = rpm_dir['SOURCES']
|
||||
|
|
@ -355,6 +357,7 @@ class bdist_rpm (Command):
|
|||
assert len(rpms) == 1, \
|
||||
"unexpected number of RPM files found: %s" % rpms
|
||||
self.move_file(rpms[0], self.dist_dir)
|
||||
self.distribution.dist_files.append(('bdist_rpm', rpms[0]))
|
||||
if debuginfo:
|
||||
self.move_file(debuginfo[0], self.dist_dir)
|
||||
# run()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue