![](/img/trans.png)
[英]How to distribute and or package a python file with all dependencies pre-downloaded without building an executable
[英]How to distribute a Python package that adds an executable to the path?
我有一堆命令要分發給我的同事。 他們要我 package 並將其添加到他們的路徑 ( /usr/local/bin
)
我該怎么做? 我們已經有一個 Python 存儲庫。 這在egg
中可能嗎?
我不喜歡回答我自己的問題,但我已經開始看這個:
http://docs.python.org/distutils/setupscript.html#installing-additional-files
似乎這可能是答案。 我將在星期一試用時更新此答案。 或者,如果有人以前使用過類似的東西,請自己回答!
一種選擇是構建一個 RPM 。 這通常是將文件安裝到預定義位置的一種非常方便的方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.