Debian packaging with pyinstaller one dir

920 Views Asked by At

I have a python application that I need to distribute across multiple raspberries, currently using a debian package.

Currently I'm packaging a single executable file using pyinstaller, however in my latest development I'm using tensorflow, which results in a large binary file (>400MB). Besides taking more than 5 minutes to load the application, the file system is getting full of the _MEI*** folders that are created, occupying more than 1GB (How the One-File Program Works)

To address this, I tried to generate the application with the onedir approach instead of the onefile. Unfortunately I'm now struggling to find out where to install the different files that are generated in the dist folder (/usr/bin, /usr/lib/, /usr/local/lib?)

NOTE: Right now installing the .deb, places the files in /usr/lib/ and creates a symbolic link for the executable inside the /usr/bin/. This is not working, and structurally, doesn't seems ok to me.

Does this makes sense at all, do you see any other approach to solve the problem?

0

There are 0 best solutions below