Changeset 394 for python/trunk/Lib/distutils/sysconfig.py
- Timestamp:
- Mar 21, 2014, 1:39:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/Lib/distutils/sysconfig.py
r391 r394 433 433 def _init_os2(): 434 434 """Initialize the module as appropriate for OS/2""" 435 g = {} 436 # load the installed Makefile: 437 try: 438 filename = get_makefile_filename() 439 parse_makefile(filename, g) 440 except IOError, msg: 441 my_msg = "invalid Python installation: unable to open %s" % filename 442 if hasattr(msg, "strerror"): 443 my_msg = my_msg + " (%s)" % msg.strerror 444 445 raise DistutilsPlatformError(my_msg) 446 447 # load the installed pyconfig.h: 448 try: 449 filename = get_config_h_filename() 450 parse_config_h(file(filename), g) 451 except IOError, msg: 452 my_msg = "invalid Python installation: unable to open %s" % filename 453 if hasattr(msg, "strerror"): 454 my_msg = my_msg + " (%s)" % msg.strerror 455 456 raise DistutilsPlatformError(my_msg) 457 458 # On AIX, there are wrong paths to the linker scripts in the Makefile 459 # -- these paths are relative to the Python source, but when installed 460 # the scripts are in another directory. 461 if python_build: 462 g['LDSHARED'] = g['BLDSHARED'] 463 464 # OS/2 module 465 466 # set basic install directories 467 g['LIBDEST'] = get_python_lib(plat_specific=0, standard_lib=1) 468 g['BINLIBDEST'] = get_python_lib(plat_specific=1, standard_lib=1) 469 470 # XXX hmmm.. a normal install puts include files here 471 g['INCLUDEPY'] = get_python_inc(plat_specific=0) 472 473 g['SO'] = '.pyd' 474 g['EXE'] = ".exe" 475 476 global _config_vars 477 _config_vars = g 435 _init_posix() 436 # set the python module extension to .pyd instead of .dll - 437 # for compatibility with previous releases 438 _config_vars['SO'] = '.pyd' 478 439 479 440
Note:
See TracChangeset
for help on using the changeset viewer.