Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c52027 commit 6803dc2Copy full SHA for 6803dc2
1 file changed
Lib/ctypes/util.py
@@ -172,22 +172,6 @@ def find_library(name):
172
173
else:
174
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
186
187
188
- return None
189
- return res.group(0)
190
-
191
def _findSoname_ldconfig(name):
192
import struct
193
if struct.calcsize('l') == 4:
0 commit comments