Install Bash completion together with distutils / pip
- by ifischer
I have created a simple Python module and want to distribute it with pip. I also want to install a Bash completion file together with the module.
I'm installing the module with Python 2.7.1+ and pip 0.8.2.
I have this setup.py:
setup(
name='jenkinsmon',
version='0.0.1',
description='Jenkins Job Monitor',
long_description=open('README.txt').read(),
scripts=['bin/jenkinsmon'],
data_files=[
('/etc/bash_completion.d', ['extras/jenkinsmon.completion']),
],
install_requires = [
'autojenkins',
'argparse'
],
)
Now if I try to install the package with pip install -e ., the Bash completion file never gets installed together with the package.
I also tried workarounds by specifying a MANIFEST.in, like described here:
MANIFEST.in:
include extras/jenkinsmon.completion
But this also doesn't help - the completion files won't get installed.
What can I do to install the Bash completion files?