File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -172,22 +172,6 @@ def find_library(name):
172172
173173 else :
174174
175- def _findLib_ldconfig (name ):
176- # XXX assuming GLIBC's ldconfig (with option -p)
177- expr = r'/[^\(\)\s]*lib%s\.[^\(\)\s]*' % re .escape (name )
178- with contextlib .closing (os .popen ('/sbin/ldconfig -p 2>/dev/null' )) as f :
179- data = f .read ()
180- res = re .search (expr , data )
181- if not res :
182- # Hm, this works only for libs needed by the python executable.
183- cmd = 'ldd %s 2>/dev/null' % sys .executable
184- with contextlib .closing (os .popen (cmd )) as f :
185- data = f .read ()
186- res = re .search (expr , data )
187- if not res :
188- return None
189- return res .group (0 )
190-
191175 def _findSoname_ldconfig (name ):
192176 import struct
193177 if struct .calcsize ('l' ) == 4 :
You can’t perform that action at this time.
0 commit comments