[Pkg-mailman-hackers] Bug#924410: 'manage.py' uses '/usr/bin/env python' instead of '/usr/bin/python3'

Pierre-Elliott Bécue peb at debian.org
Sun Mar 24 11:37:48 GMT 2019


Le mardi 12 mars 2019 à 13:45:59-0400, Louis-Philippe Véronneau a écrit :
> Package: python3-django-hyperkitty
> Severity: normal
> 
> Dear maintainers,
> 
> On systems running both python2 and python3 and where python2 is the
> default, running 'example_project/manage.py' fails, since this is a
> python3 package. (i.e. hyperkitty can't be imported by python2 since it
> is not installed in the python2 path).
> 
> This is important since the files in 'example_project' are a very good
> way to bootstrap an hyperkitty instance without having to create a
> Django project manually.
> 
> I'll send a patch today.
> 
> Thanks for packaging this!

Hi,

While I agree that it'd be better to use /usr/bin/python3 or
/usr/bin/env python3, mind that hyperkitty was initially designed to be
both python2 and python3 compatible, hence it's hard to have a
definitive solution.

On the other hand, one should not rely on './manage.py' to manage a
production environment. The appropriate way of handling a django
instance is via django-admin and its Python3 alter-ego.

We'll discuss regarding whether we try or not to merge your fix and have
it in buster.

Best regards,

-- 
Pierre-Elliott Bécue
GPG: 9AE0 4D98 6400 E3B6 7528  F493 0D44 2664 1949 74E2
It's far easier to fight for one's principles than to live up to them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-mailman-hackers/attachments/20190324/fd0d825c/attachment.sig>


More information about the Pkg-mailman-hackers mailing list