[issue21042] ctypes.util.find_library() should return full pathname instead of filename in linux

Tamás Bence Gedai report at bugs.python.org
Sun Feb 21 15:12:58 EST 2016


Tamás Bence Gedai added the comment:

I've added a new method to Test_OpenGL_libs as you suggested. I check whether find_library returns an absolute path. Note that I didn't distinguish different systems, as according to the docs, only Linux systems return the file name, other systems return the absolute path. (https://docs.python.org/3.5/library/ctypes.html#ctypes-reference) An other thing to note, that I introduced some code duplication as I use the same code snippet from setUpClass method to figure out the correct parameters to find_library.

The patch uses the same regex as you gave.

By the way, what do I have to do to compile CPython on a 64 bit system in 32 bit mode? I tried ./configure CC="gcc -m32" but it gave me an error. Is it the correct way?

Also, I signed contributor agreement.

----------
Added file: http://bugs.python.org/file41992/find_lib_v3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21042>
_______________________________________


More information about the Python-bugs-list mailing list