If I use PyInstaller to create an executable from python code that contains a binary (e.g. a .pyc file in a wheel package) how does the binary become a part of the exe that is created? For example in scipy.spatial there is a python extension file named qhull.cp38-winamd64.pyc. When I try to run the .exe created by PyInstaller, attempting to execute the code:
from .qhull import *
Will give error message "Importer: DLL load failed. module qhull cannot be found". The qhull module is the binary qhull.cp38-winamd64.pyc.