~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Lib/distutils/command/bdist_rpm.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
365
365
        self.spawn(rpm_cmd)
366
366
 
367
367
        if not self.dry_run:
 
368
            if self.distribution.has_ext_modules():
 
369
                pyversion = get_python_version()
 
370
            else:
 
371
                pyversion = 'any'
 
372
 
368
373
            if not self.binary_only:
369
374
                srpm = os.path.join(rpm_dir['SRPMS'], source_rpm)
370
375
                assert(os.path.exists(srpm))
371
376
                self.move_file(srpm, self.dist_dir)
 
377
                filename = os.path.join(self.dist_dir, source_rpm)
 
378
                self.distribution.dist_files.append(
 
379
                    ('bdist_rpm', pyversion, filename))
372
380
 
373
381
            if not self.source_only:
374
382
                for rpm in binary_rpms:
375
383
                    rpm = os.path.join(rpm_dir['RPMS'], rpm)
376
384
                    if os.path.exists(rpm):
377
385
                        self.move_file(rpm, self.dist_dir)
 
386
                        filename = os.path.join(self.dist_dir,
 
387
                                                os.path.basename(rpm))
 
388
                        self.distribution.dist_files.append(
 
389
                            ('bdist_rpm', pyversion, filename))
378
390
 
379
391
    def _dist_path(self, path):
380
392
        return os.path.join(self.dist_dir, os.path.basename(path))