#7268 closed (duplicate)
Have a consistent handling of Django scripts for upstream distributors
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Tools | Version: | dev |
Severity: | Keywords: | ||
Cc: | gav@… | Triage Stage: | Design decision needed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hello, I'm one of the debian maintainer of python-django and have some suggestions.
It would be nice if all the scripts in django/bin/ could:
- be named consistently "django-<something>" so that they can be installed in /usr/bin/ without polluting the namespace (the manual pages in docs/man need to be renamed too)
- all have the standard shebang line "#!/usr/bin/env python" (django/bin/profiling/gather_profile_stats.py lacks it)
- be made executable by default (add the svn:executable property or make sure that setup.py add the executable bits)
Currently Debian already installs django-admin in /usr/bin together with the associated manual page. If the other scripts were renamed, we could so the same and have django-make-messages on the $PATH instead of hidden deep in the standard python hierarchy. BTW, I attach a patch for extras/django_bash_completion that also accept "djando-admin" as name for the django-admin.py script.
Thanks for considering those issues that matters mainly for distributors.
Attachments (1)
Change History (10)
by , 17 years ago
Attachment: | 02_bash_completion.diff added |
---|
comment:1 by , 17 years ago
Cc: | added |
---|
comment:2 by , 17 years ago
Has patch: | set |
---|---|
Summary: | Have a consistent handling of Django scripts → Have a consistent handling of Django scripts for upstream distributors |
Triage Stage: | Unreviewed → Ready for checkin |
comment:3 by , 17 years ago
comment:4 by , 17 years ago
comment:5 by , 17 years ago
comment:6 by , 17 years ago
Has patch: | unset |
---|---|
milestone: | → 1.0 alpha |
Triage Stage: | Ready for checkin → Design decision needed |
There is one outstanding part to this ticket - renaming of scripts and man pages to have a common prefix. This would be a backwards incompatible change, so we need to make a decision pre-v1. Moving to Design Decision Required with a version tag of 1.0-alpha to remind us to discuss this at a sprint.
comment:7 by , 16 years ago
FYI, I intend to move most of the scripts in django/bin to django.core.management.commands as discussed in #5522 (which has patches and docs).
comment:8 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Ok; Closing remaining parts of ticket in favour of #5522.
Make bash completion file recognize "django-admin" command