python-libarchive-c icon indicating copy to clipboard operation
python-libarchive-c copied to clipboard

Autodetection of libarchive version installed by Brew

Open Changaco opened this issue 6 years ago • 0 comments

The version of libarchive included in Mac OS X is obsolete, consequently many people use Homebrew to install another version, but then they have to set the LIBARCHIVE environment variable, otherwise the obsolete version is still used by the Python module.

It could be a good idea to automatically detect and use by default the libarchive version installed by Brew, by doing something similar to the shell one-liner find "$(brew --cellar libarchive)" -name libarchive.13.dylib | sort | tail -1 and the Python script brew_find_libarchive.

Changaco avatar Mar 15 '19 11:03 Changaco