I try to create a debian package of a python application as follows:
- Write a setup.py
- Generate a debian folder by stddeb
- Run dpkg-buildpackage -b -rfakeroot -uc to build the debian package
The setup.py is like
#!/usr/bin/env python
from distutils.core import setup
setup(name='foo',
version='1.0.0',
description='Foo example',
author='Kuan-Kai Chiu',
author_email='[email protected]',
scripts=['src/foo.py']
)
How do I install the foo.py to /usr/local/bin instead of being installed to /usr/bin? I know there's an option --install-scripts=/usr/local/bin while running python setup.py install, but I have to debianize my python application and it seems no way to specify the install-scripts prefix.
Thanks in advance!