Changeset 10 for python/trunk/setup.py
- Timestamp:
- Sep 3, 2010, 5:33:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk/setup.py
r2 r10 383 383 inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep) 384 384 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) 385 389 # OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb) 386 390 if platform in ['osf1', 'unixware7', 'openunix8']: … … 517 521 518 522 # Memory-mapped files (also works on Win32). 519 if platform not in ['atheos', 'mac' ]:523 if platform not in ['atheos', 'mac', 'os2knix']: 520 524 exts.append( Extension('mmap', ['mmapmodule.c']) ) 521 525 else: … … 868 872 db_incs = [db_incdir] 869 873 dblibs = [dblib] 874 # YD add required libs 875 if os.name == "os2": 876 dblibs += ["mmap", "pthread"] 870 877 # We add the runtime_library_dirs argument because the 871 878 # BerkeleyDB lib we're linking against often isn't in the … … 1069 1076 1070 1077 # Sun yellow pages. Some systems have the functions in libc. 1071 if (platform not in ['cygwin', 'atheos', 'qnx6' ] and1078 if (platform not in ['cygwin', 'atheos', 'qnx6', 'os2knix'] and 1072 1079 find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None): 1073 1080 if (self.compiler.find_library_file(lib_dirs, 'nsl')): … … 1288 1295 libraries = [] 1289 1296 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 = [] 1290 1305 elif platform.startswith('openbsd'): 1291 1306 macros = dict( # OpenBSD
Note:
See TracChangeset
for help on using the changeset viewer.