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

Prevent static libraries from being suggested as a path #7

Closed ktbarrett closed 3 years ago

ktbarrett commented 3 years ago
$ find_libpython --candidate-names
libpython3.8.dll.a
libpython3.8.dll
python3.8.dll
python3.dll
python.dll

Additionally, candidate names contains libpython38.dll.a. AFAIK this is not a viable dynamic library name and should not be considered. get_config_var("LDLIBRARY") and get_config_var("LIBRARY") return libraries that are archives due to the python in question not being compiled with --enable-shared.

_Originally posted by @ktbarrett in https://github.com/ktbarrett/find_libpython/issues/1#issuecomment-770097103_

ktbarrett commented 3 years ago

Closed by #16.