Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7747255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:29:03+00:00 2026-06-01T10:29:03+00:00

I have created a simple Python module and want to distribute it with pip.

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:29:04+00:00Added an answer on June 1, 2026 at 10:29 am

    My error (besides not reading the pip-documentation in general) was just to add -e to the pip install parameters, which means to install in “editable” mode. To quote the documentation

    Using the –editable or -e option, pip has the capability to install
    directly from a version control repository (it currently supports
    Subversion, Mercurial, Git, and Bazaar):

    pip install -e
    svn+http://svn.colorstudy.com/INITools/trunk#egg=initools-dev

    This
    option shells out to the commandline client for each respective VCS,
    so you must have the VCS installed on your system. The repo URL must
    begin with svn+ (or hg+, git+, or bzr+) and end with #egg=packagename;
    otherwise, pip supports the same URL formats and wire protocols
    supported by the VCS itself.

    Pip will checkout the source repo into a src/ directory inside the
    virtualenv (i.e. pip_test_env/src/initools-dev), and then run python
    setup.py develop in that source repo. This “links” the code directly
    from the repo into the virtualenv’s site-packages directory (by adding
    the repo directory into easy-install.pth), so changes you make in the
    source checkout are effective immediately.

    If you already have a local VCS checkout you want to keep using, you
    can just use pip install -e path/to/repo to install it “editable” in
    the same way.

    So to install the package permanently into the System, I have to remove -r, then the Bash-completion files are installed as expected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to manually create Friendly URLs? (PHP) So I have created simple php file
I have a UTF-16 CSV file which I have to read. Python csv module
I have a simple, pure python project that I want to make available with
I have created a simple MFC .dll file and I am able to access
I have been trying to create a simple program with Python which uses OpenCV
Could someone help me on this, I have created simple web services using axis2
I am new to Repository concept and get some questions. I have created simple
I have created a simple wcf service which used the WCF Service Library template.
I have created a simple grid of divs by left floating them and an
I have created a simple Asp.Net custom control which automatically combines all the correct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.