Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ctypes.util.find_library usage #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 8, 2018

  1. fix ctypes.util.find_library usage

    Per https://docs.python.org/2/library/ctypes.html the find_library
    function should be called "without any prefix like lib, suffix like .so,
    .dylib or version number".
    
     - change _LIBRARY_NAME from "libarchive" to "archive" as required
    
     - move find_library logic after the *_LIBRARY_PATH logic to preserve
       current behavior. I suspect that the LD_LIBRARY_PATH logic is not
       actually necessary, but a side effect of this bug. I'm leaving it
       alone because I can't test all existing configurations to confirm
       that.
    
     - if find_library returns a result, use it unconditionally. Trying to
       confirm it is unnecessary (find_library would have returned None
       otherwise) and impossible without duplicating all of the linker's
       logic. The result will be something like "libarchive.so.13" (without
       a path) which will just do the right thing when used with LoadLibrary.
    
     - remove note about installing libarchive-dev, that isn't needed
    mstone232 committed Aug 8, 2018
    Configuration menu
    Copy the full SHA
    a282f9e View commit details
    Browse the repository at this point in the history