Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
274 views
in Technique[技术] by (71.8m points)

Debian packaging with pyinstaller one dir

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...