Message264151
One thing I am wondering about is why we have to use find_library() at all. Wouldn’t it be more robust, and more efficient, to call CDLL() directly? We just have to know the exactly library version we are expecting. On Linux, the full soname is libuuid.so.1. It seems on OS X it is called libc.dylib (but it would be good for someone else to confirm).
# The uuid_generate_* routines are provided by libuuid on at least
# Linux and FreeBSD, and provided by libc on Mac OS X.
if sys.platform == "darwin":
libname = "libc.dylib"
else:
libname = "libuuid.so.1"
_ctypes_lib = ctypes.CDLL(libname) |
|
Date |
User |
Action |
Args |
2016-04-25 03:51:24 | martin.panter | set | recipients:
+ martin.panter, orsenthil, kdart, pitrou, christian.heimes, eric.araujo, Arfrever, r.david.murray, nvetoshkin, knny-myer, nailor, Keith.Dart, hynek, serhiy.storchaka |
2016-04-25 03:51:23 | martin.panter | set | messageid: <1461556283.98.0.268202156341.issue11063@psf.upfronthosting.co.za> |
2016-04-25 03:51:23 | martin.panter | link | issue11063 messages |
2016-04-25 03:51:23 | martin.panter | create | |
|