ktbarrett / find_libpython

Finds the libpython associated with the current Python environment, wherever it may be hiding.
MIT License
14 stars 7 forks source link

Better Windows support #25

Closed ktbarrett closed 3 years ago

ktbarrett commented 3 years ago

On Windows, sys.dllhandle provides a consistent way to access python.dll. This should be sufficient to get find_libpython to work in python.org and Anaconda distributions on Windows. Also made is_windows=False when wither is_msys or is_mingw is True, since we intend to treat them differently.

ktbarrett commented 3 years ago

While it appears to do nothing, if you comment out the lines that generate the name of libpython for candidate_names, you will see it return the correct path. I hope one day to remove the lines that generate candidate names and locations, and have it just know where to look exactly.