Changeset 10 for python/trunk/setup.py


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

python: merged offline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/setup.py

    r2 r10  
    383383            inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep)
    384384
     385        # Check for OS/2 which may have libraries in non-standard locations
     386        if platform == 'os2knix':
     387            lib_dirs += os.getenv('LIBRARY_PATH', '').split(os.pathsep)
     388            inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep)
    385389        # OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb)
    386390        if platform in ['osf1', 'unixware7', 'openunix8']:
     
    517521
    518522        # Memory-mapped files (also works on Win32).
    519         if platform not in ['atheos', 'mac']:
     523        if platform not in ['atheos', 'mac', 'os2knix']:
    520524            exts.append( Extension('mmap', ['mmapmodule.c']) )
    521525        else:
     
    868872            db_incs = [db_incdir]
    869873            dblibs = [dblib]
     874            # YD add required libs
     875            if os.name == "os2":
     876                dblibs += ["mmap", "pthread"]
    870877            # We add the runtime_library_dirs argument because the
    871878            # BerkeleyDB lib we're linking against often isn't in the
     
    10691076
    10701077            # Sun yellow pages. Some systems have the functions in libc.
    1071             if (platform not in ['cygwin', 'atheos', 'qnx6'] and
     1078            if (platform not in ['cygwin', 'atheos', 'qnx6', 'os2knix'] and
    10721079                find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None):
    10731080                if (self.compiler.find_library_file(lib_dirs, 'nsl')):
     
    12881295            libraries = []
    12891296
     1297        elif platform in ('os2knix'):
     1298            # FreeBSD's P1003.1b semaphore support is very experimental
     1299            # and has many known problems. (as of June 2008)
     1300            macros = dict(                  # FreeBSD
     1301                HAVE_SEM_OPEN=0,
     1302                HAVE_SEM_TIMEDWAIT=0,
     1303                )
     1304            libraries = []
    12901305        elif platform.startswith('openbsd'):
    12911306            macros = dict(                  # OpenBSD
Note: See TracChangeset for help on using the changeset viewer.