[Answer]-Pip install not installing part of the repository

0πŸ‘

βœ…

Ok I just found a solution :
setup.py isn’t configured to take into account the folder /templatetags.

Just add, in the setup.py, to the line packages=['django_bleach'] : 'django_bleach.templatetags' , so it looks like this (thx to frog32 !):

    ...
    packages=[
        'django_bleach',
        'django_bleach.templatetags'
    ],
    ...

If the package is not yours (like in my case), you need to fork it (usually on Bitbucket or GitHub), change the setup.py in your repository. In the case you use Pip, you should configure your requirement.txt to get the package from YOUR repository, here my example is :

    (other packages)
    ...
    django-bleach
    ...

becomes:

    ...
    git+https://sebastien_worms@bitbucket.org/sebastien_worms/django-bleach.git
    ...

In my case I just have to run pip install -r requirement.txt and I’m done !

1πŸ‘

you should add the package django_bleach.templatetags to packages

packages=[
    'django_bleach',
    'django_bleach.templatetags',
]

package_data is intended for non python files

πŸ‘€frog32

Leave a comment