[Python-checkins] r47025 - python/trunk/Lib/ctypes/test/test_loading.py
thomas.heller
python-checkins at python.org
Mon Jun 19 10:32:46 CEST 2006
Author: thomas.heller
Date: Mon Jun 19 10:32:46 2006
New Revision: 47025
Modified:
python/trunk/Lib/ctypes/test/test_loading.py
Log:
Next try to fix the OpenBSD buildbot tests:
Use ctypes.util.find_library to locate the C runtime library
on platforms where is returns useful results.
Modified: python/trunk/Lib/ctypes/test/test_loading.py
==============================================================================
--- python/trunk/Lib/ctypes/test/test_loading.py (original)
+++ python/trunk/Lib/ctypes/test/test_loading.py Mon Jun 19 10:32:46 2006
@@ -9,18 +9,10 @@
libc_name = "msvcrt"
elif os.name == "ce":
libc_name = "coredll"
-elif sys.platform == "darwin":
- libc_name = "libc.dylib"
elif sys.platform == "cygwin":
libc_name = "cygwin1.dll"
else:
- for line in os.popen("ldd %s" % sys.executable):
- if "libc.so" in line:
- if sys.platform.startswith("openbsd3"):
- libc_name = line.split()[4]
- else:
- libc_name = line.split()[2]
- break
+ libc_name = find_library("c")
if is_resource_enabled("printing"):
print "libc_name is", libc_name
More information about the Python-checkins
mailing list