How to package a linked DLL and a pyd file into one self contained pyd file?
问题 I am building a python module with Cython that links against a DLL file. In order to succesfully import my module I need to have the DLL in the Windows search path. Otherwise, the typical error message is: ImportError: DLL load failed: The specified module could not be found. Is there a way to packaged the DLL directly into the produced pyd file to make the distribution easier? One example of this is with the OpenCV distribution, where a (huge) pyd file is distributed and is the only file