(a) It will check whether the user is looking for a DLL file. If not, it will search on the Unix host system. For queries like ctypes.util.find_library('c') or ctypes.util.find_library('m'), this is absolutely undesired.
(b) The current implementation calls wine-python -c ... / wenv python -c ... through subprocess.Popen, which is in its current form inefficient, slow and error-prone.
Likely solution: find_msvcrt and find_library should become part of the ctypes-session API.
(a) It will check whether the user is looking for a DLL file. If not, it will search on the Unix host system. For queries like
ctypes.util.find_library('c')
orctypes.util.find_library('m')
, this is absolutely undesired.(b) The current implementation calls
wine-python -c ...
/wenv python -c ...
throughsubprocess.Popen
, which is in its current form inefficient, slow and error-prone.Likely solution:
find_msvcrt
andfind_library
should become part of the ctypes-session API.