Add Nvidia libraries to Unix exclusion list #7746
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changeset adds several Nvidia libraries to PyInstaller's list of excluded libraries, which fixes the issue reported in #7745 in the manner suggested by @rokm.
The libraries added by this PR are a subset of what is listed in the Nvidia driver documentation for one of the recently release driver versions as of the time of this PR. I did check some historical versions and though there are a few libraries present in older drivers that are not covered by this change, the libraries listed here seem to be stable features of the stack.
Note that I have explicitly left out any libraries related to CUDA or OpenCL which are reasonably likely candidates for inclusion in a PyInstaller application, and which have decent forward compatibility as far as I know.
The specific case that led me to file this PR and which I used to test its efficacy is a PyInstaller application that has a dependency
pynvml
, which induces a dependency (viactypes
) onlibnvidia-ml
that can cause mismatches if the application is run on a system with a different driver version than the system that built the PyInstaller distribution.