Install Bash completion together with distutils / pip
Posted
by
ifischer
on Stack Overflow
See other posts from Stack Overflow
or by ifischer
Published on 2012-03-30T13:51:46Z
Indexed on
2012/04/04
17:29 UTC
Read the original article
Hit count: 391
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?
© Stack Overflow or respective owner