Ticket #21511: django_bash_completion-packaging.patch

File django_bash_completion-packaging.patch, 925 bytes (added by nekolny.brett@…, 5 years ago)

django_bash_completion packaging

  • setup.py

    diff --git a/setup.py b/setup.py
    index 333d57a..bb91240 100644
    a b for dirpath, dirnames, filenames in os.walk(django_dir): 
    7676    elif filenames:
    7777        data_files.append([dirpath, [os.path.join(dirpath, f) for f in filenames]])
    7878
     79# Adding the extras package so that we can get the django_bash_completion script
     80packages.append('extras')
     81
    7982# Small hack for working with bdist_wininst.
    8083# See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html
    8184if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
    setup( 
    9699    packages = packages,
    97100    cmdclass = cmdclasses,
    98101    data_files = data_files,
    99     scripts = ['django/bin/django-admin.py'],
     102    scripts = ['django/bin/django-admin.py', 'extras/django_bash_completion'],
    100103    classifiers = [
    101104        'Development Status :: 5 - Production/Stable',
    102105        'Environment :: Web Environment',
Back to Top