简体   繁体   中英

How to distribute a Python package that adds an executable to the path?

I have a bunch of commands that I want to distribute to my colleagues. They want me to package it and add it to their path ( /usr/local/bin )

How would I do this? We already have a Python repository. Is this possible in an egg ?

I dislike answering my own question but I have begun looking at this:

http://docs.python.org/distutils/setupscript.html#installing-additional-files

Seems like it might be the answer. I will update this answer when I try it out on Monday. Or, if anyone has used something like this before, answer yourself!

One option would be to build an RPM . This is generally a pretty convenient way to install files to a predefined location.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM