Remove unused private function

This commit is contained in:
Antoine Pitrou 2011-04-23 17:56:06 +02:00
parent 8c52027e2d
commit 6803dc28b1
1 changed files with 0 additions and 16 deletions

View File

@ -172,22 +172,6 @@ elif os.name == "posix":
else:
def _findLib_ldconfig(name):
# XXX assuming GLIBC's ldconfig (with option -p)
expr = r'/[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name)
with contextlib.closing(os.popen('/sbin/ldconfig -p 2>/dev/null')) as f:
data = f.read()
res = re.search(expr, data)
if not res:
# Hm, this works only for libs needed by the python executable.
cmd = 'ldd %s 2>/dev/null' % sys.executable
with contextlib.closing(os.popen(cmd)) as f:
data = f.read()
res = re.search(expr, data)
if not res:
return None
return res.group(0)
def _findSoname_ldconfig(name):
import struct
if struct.calcsize('l') == 4: