How do I distribute a Python package that adds an executable to a 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 my path ( /usr/local/bin

)

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

?

+3


source to share


2 answers


I don't like answering my own question, but I started looking at this:

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



It looks like this might be the answer. I'll update this answer when I try it on Monday. Or, if anyone has used something like this before, answer yourself!

+4


source


One option is to create an RPM . This is usually a fairly convenient way to install files to a predefined location.



0


source







All Articles