Using setuptools I am able to get python to install in the /opt/ directory but I would also like to specify a single file to be installed in the /usr/bin directory.
Example tree:
setup.py
src/
file1.py
file2.py
main.py
Currently I am using the following command
python setup.py install --install-lib=/opt/src
to get the following installed.
opt/src/
file1.py
file2.py
main.py
but I would like it to be installed as below.
/opt/src/
file1.py
file2.py
/usr/bin/
main.py
data_filesoption might help. However, this option is usually frowned upon due to inconsistency across tools and the difficulty of configuring this option.binyou can declaremain.pyto be an item ofscripts.