开发者

Cx_freeze - How can I Install the shared libraries to /usr/lib

开发者 https://www.devze.com 2023-01-28 17:40 出处:网络
I am using cx_freeze to compile my python script and when I compile the program,开发者_如何学JAVA all the files are placed in one specified folder. The executable wont run if the shared libs are not w

I am using cx_freeze to compile my python script and when I compile the program,开发者_如何学JAVA all the files are placed in one specified folder. The executable wont run if the shared libs are not within the same directory.

How would I set it up so the executable looks within /usr/lib/PROGRAMNAME/ to run the libraries?


bbfreeze will put everything in a single executable.


You can do it with the following cx_Freeze command :

python3 setup.py install --prefix=/usr

This will deploy:

  1. all generated files (*.so, library.zip and included files) into /usr/lib/YourAppName/
  2. /usr/bin/yourapp symlinking to /usr/lib/YourAppName/yourapp.
0

精彩评论

暂无评论...
验证码 换一张
取 消