My package needs external libraries (with .dll extension) from a directory located, for example, in "C:\Program Files\NVIDIA Corporation\GSTPlugin" . This path can change, it depends on the computer. It could be in Programs Files. During the installation from PyPi using pip install my_package
I want Python to recognize these libraries, as I want to use _NvGSTPlugin.dll.
Any ideas how to implement this?
I tried to include in the setup.py
file a script as a post-install, but as I use a wheel file it doesn't work (because there is no setup.py
in a wheel).
A solution is to add a .pth with the path of these dlls in the src directory as this link setup.py: installing just a pth file? shows. The problem is that I dont know where everyone have located these dlls. I could know looking in the windows register.