Ignore:
Timestamp:
Sep 3, 2010, 5:33:06 PM (15 years ago)
Author:
Yuri Dario
Message:

python: merged offline changes.

Location:
python/trunk/Lib/distutils/command
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/Lib/distutils/command/bdist_rpm.py

    r2 r10  
    200200                  "--python and --fix-python are mutually exclusive options"
    201201
    202         if os.name != 'posix':
     202        if os.name != 'posix' and os.name != 'os2':
    203203            raise DistutilsPlatformError, \
    204204                  ("don't know how to create RPM "
     
    323323        rpm_cmd = ['rpm']
    324324        if os.path.exists('/usr/bin/rpmbuild') or \
     325           os.path.exists('/usr/bin/rpmbuild.exe') or \
    325326           os.path.exists('/bin/rpmbuild'):
    326327            rpm_cmd = ['rpmbuild']
     
    346347        q_cmd = r"rpm -q --qf '%s %s\n' --specfile '%s'" % (
    347348            src_rpm, non_src_rpm, spec_path)
     349        if os.name == 'os2':
     350            q_cmd = q_cmd.replace( '%{', '%%{')
    348351
    349352        out = os.popen(q_cmd)
  • python/trunk/Lib/distutils/command/install.py

    r2 r10  
    284284
    285285        # Next, stuff that's wrong (or dubious) only on certain platforms.
    286         if os.name != "posix":
     286        if os.name != "posix" and os.name != "os2":
    287287            if self.exec_prefix:
    288288                self.warn("exec-prefix option ignored on this platform")
     
    299299        self.dump_dirs("pre-finalize_{unix,other}")
    300300
    301         if os.name == 'posix':
     301        if os.name == 'posix' or os.name == "os2":
    302302            self.finalize_unix()
    303303        else:
Note: See TracChangeset for help on using the changeset viewer.