my setup.py
file looks like
$ cat setup.py
from setuptools import setup
setup(
name='user1-hello-world',
version='0.20',
scripts=['user1-hello-world'] ,
data_files=[('/usr/sbin/',['user1-bin2'])]
)
I have 1 python script (user1-hello-world) and 1 elf binary file(user1-bin2)
$ ls
user1-hello-world user1-bin2 setup.py
build and uploading using twine like:
python3 setup.py sdist bdist_wheel
python3 -m twine upload --repository testpypi dist/*
After uploading the files to test.pypi.org. Installing via pip show the files under home dir.
/home/user/.local/bin/user1-hello-world
/home/user1/.local/lib/python3.8/site-packages/user1_hello_world-0.20.dist-info/*
/home/user1/.local/lib/python3.8/site-packages/usr/sbin/user1-bin2
I was hoping to install user1-bin2
under /usr/sbin
like /usr/sbin/user1-bin2
. How to achieve this? thanks for any pointers.