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

Add tests for homebrew python #19

Closed ktbarrett closed 3 years ago

ktbarrett commented 3 years ago

xref #4.

ktbarrett commented 3 years ago

The test passes but I don't think it's correct. I am assuming there is actually a libpythonXXXX.so somewhere on the system. My guess is that is has the m suffix and isn't being searched for. Now I understand why the original code tried stripping and replacing the extension, it would find suffixes automatically. I'll need to iterate on this, I don't have a Mac OS X license to just poke around in.

ktbarrett commented 3 years ago

I think the issue is the bad assumption that the shared library will end in .dylib. The code then tosses the value from LDLIBRARY.

ktbarrett commented 3 years ago

Nvm, I'm stupid. Apparently I don't know what a framework is.