#23433: Django installs /usr/bin/django-admin and /usr/bin/django-admin.py
--------------------------------------+--------------------
Reporter: Arfrever | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Packaging | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
Django (since 1.7) installs `/usr/bin/django-admin` and `/usr/bin/django-
admin.py`.
Both of them execute `django.core.management.execute_from_command_line()`.
`/usr/bin/django-admin.py` does it directly, while `/usr/bin/django-admin`
does it through `pkg_resources` module of Setuptools.
`/usr/bin/django-admin.py`:
{{{
#!/usr/bin/python3.4
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
}}}
`/usr/bin/django-admin`:
{{{
#!/usr/bin/python3.4
# EASY-INSTALL-ENTRY-SCRIPT: 'Django==1.7','console_scripts','django-
admin'
__requires__ = 'Django==1.7'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('Django==1.7', 'console_scripts', 'django-
admin')()
)
}}}
`/usr/lib64/python3.4/site-packages/Django-1.7-py3.4.egg-
info/entry_points.txt`:
{{{
[console_scripts]
django-admin = django.core.management:execute_from_command_line
}}}
Installation of `/usr/bin/django-admin.py` is caused by
`scripts=['django/bin/django-admin.py']` in `setup.py`.
Installation of `/usr/bin/django-admin` is caused by
`entry_points={'console_scripts': ['django-admin =
django.core.management:execute_from_command_line',]}` in `setup.py`.
I think that it would suffice to install only one of these scripts.
--
Ticket URL: <https://code.djangoproject.com/ticket/23433>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.4d277fcee18c058f275db44c12df9587%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.