pleiszenburg / zugbruecke

Calling routines in Windows DLLs from Python scripts running under Linux, MacOS or BSD
https://zugbruecke.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
111 stars 11 forks source link

zugbruecke.util in its current form is almost useless #52

Closed s-m-e closed 2 years ago

s-m-e commented 5 years ago

(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.

s-m-e commented 2 years ago

Fixed in v0.1.0.