feat: do not copy libraries in site-packages by XuehaiPan · Pull Request #392 · pypa/auditwheel (original) (raw)
As mentioned in #391 (comment), it's not as easy as just updating the rpath
because both packages might not be in the same platlib
folder.
Given rpath
is not an option, I think we're kind of in the same situation as #368 with the difference that the dependency is not an arbitrary shared object but one provided by another package. It's thus the responsibility of the package requiring the dependency to ensure proper loading of the shared object it depends on. It's not enough to declare the package as a dependency in metadata (& this must be done with care regarding ABI compatibility between different versions).
Given specific steps are required to ensure proper loading of shared object, I'm not sure we want to silently filter out all shared objects in site-packages
and thus we're a bit more like in #368 were exceptions are explicitly passed in one-by-one.
@lkollar, any thoughts ?