I have written a python application which makes use of pdfkit package to print PDFs. I am using pyinstaller to build an executable of this application on Ubuntu. pdfkit depends on wkhtmltopdf installed with sudo apt install under /usr/bin/.
As per the pyinstaller documentation binaries can be included by adding each binary to the "binaries" list in the .spec file. However this does not seem to work. I also tried to create a copy of the wkhtmltopdf in the pwd and added the file to the "datas" list in the .spec file but it did not work.
How can I include the wkhtmltopdf binary present under /usr/bin/ to my package so that the end user need not install it separately?