On Tue, 24 Jun 2014, Brian May wrote: > On 24 Jun 2014 16:51, "Raphael Hertzog" <hert...@debian.org> wrote: > > It doesn't look clean to have python-django recommends python3-django just > > to have django-admin and django_bash_completion. I believe it would better > > to move them to a "python-django-common" package, no? > > I can't see how that would help. You would still need to depend on > python3-django. > > Alternatives would work for django-admin but probably overkill. > > Hmm. Might be possible to replace django-admin (it is small) and make it > use python3-django with Python3 if installed else python-django with > Python2 somehow?
Yes, definitely. I would move it to /usr/share/python-django-common/ and then use something like this: #!/bin/sh if test -x /usr/bin/python3 && test -e /usr/lib/python3/dist-packages/django; then exec python3 /usr/share/python-django-common/django-admin.py "$@" else exec python /usr/share/python-django-common/django-admin.py "$@" fi Cheers, -- Raphaël Hertzog ◈ Debian Developer Discover the Debian Administrator's Handbook: → http://debian-handbook.info/get/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org