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?
question from:
https://stackoverflow.com/questions/65907391/debian-packaging-with-pyinstaller-one-dir 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…