Changeset 10 for python/trunk/Lib/distutils/command
- Timestamp:
- Sep 3, 2010, 5:33:06 PM (15 years ago)
- Location:
- python/trunk/Lib/distutils/command
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/Lib/distutils/command/bdist_rpm.py
r2 r10 200 200 "--python and --fix-python are mutually exclusive options" 201 201 202 if os.name != 'posix' :202 if os.name != 'posix' and os.name != 'os2': 203 203 raise DistutilsPlatformError, \ 204 204 ("don't know how to create RPM " … … 323 323 rpm_cmd = ['rpm'] 324 324 if os.path.exists('/usr/bin/rpmbuild') or \ 325 os.path.exists('/usr/bin/rpmbuild.exe') or \ 325 326 os.path.exists('/bin/rpmbuild'): 326 327 rpm_cmd = ['rpmbuild'] … … 346 347 q_cmd = r"rpm -q --qf '%s %s\n' --specfile '%s'" % ( 347 348 src_rpm, non_src_rpm, spec_path) 349 if os.name == 'os2': 350 q_cmd = q_cmd.replace( '%{', '%%{') 348 351 349 352 out = os.popen(q_cmd) -
python/trunk/Lib/distutils/command/install.py
r2 r10 284 284 285 285 # 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": 287 287 if self.exec_prefix: 288 288 self.warn("exec-prefix option ignored on this platform") … … 299 299 self.dump_dirs("pre-finalize_{unix,other}") 300 300 301 if os.name == 'posix' :301 if os.name == 'posix' or os.name == "os2": 302 302 self.finalize_unix() 303 303 else:
Note:
See TracChangeset
for help on using the changeset viewer.