In the last few years I have done quite some programming work with Python and started to love both the Anaconda distribution (I might do another blog-post on that topic) and the Spyder IDE. If you are very new to Python and programming, this might be a little overkill, but it will be a very clean basis to start with and no drama, once there is the need to update or upgrade. So follow these steps if you want to get a first quick-start into Python with using the Spyder IDE and Anaconda.
So, I recently stumbled upon the problem of having to include an external DLL into a python package, which should also work when turned into a windows executable by
pyinstaller. This post, is meant to be a help if you run into the same problems I was having (and of course as my personal prosthetic knowledge).
The structure of this post will be:
- Finding dependencies
- Testing the DLL inside python
- Make the loaded DLL work inside a python package
- Bundling the DLL with pyinstaller