Debian packages unconditionally byte-compile .py files on installation and
do not silence errors by design. Therefore, we need a way of shipping
these
invalid .py files without a .py extension but ensuring that when we
template them, they end up as .py.
We don't special-case .py files so that the all the TemplateCommand
command-line options (eg. extra_files and extensions) still work entirely
as expected and it may even be useful for other formats too.
via https://github.com/django/django/pull/5735
--
Ticket URL: <https://code.djangoproject.com/ticket/25968>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 1
* component: Uncategorized => Core (Management commands)
* needs_tests: => 0
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Read also [https://groups.google.com/forum/#!msg/django-
developers/nPShxGatRuE/HgSGrgMDBgAJ the django-dev discussion].
--
Ticket URL: <https://code.djangoproject.com/ticket/25968#comment:1>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/25968#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"abc0777b63057e2ff97eee2ff184356051e14c47" abc0777b]:
{{{
#!CommitTicketReference repository=""
revision="abc0777b63057e2ff97eee2ff184356051e14c47"
Fixed #25968 -- Changed project/app templates to use a "py-tpl" suffix.
Debian packages unconditionally byte-compile .py files on installation and
do not silence errors by design. Therefore, we need a way of shipping
these
invalid .py files without a .py extension but ensuring that when we
template them, they end up as .py.
We don't special-case .py files so that the all the TemplateCommand
command-line options (eg. extra_files and extensions) still work entirely
as expected and it may even be useful for other formats too.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25968#comment:3>
Comment (by Tim Graham <timograham@…>):
In [changeset:"3306106fb1ce610e0961ce319a98e33c93795c1f" 3306106]:
{{{
#!CommitTicketReference repository=""
revision="3306106fb1ce610e0961ce319a98e33c93795c1f"
[1.9.x] Fixed #25968 -- Changed project/app templates to use a "py-tpl"
suffix.
Debian packages unconditionally byte-compile .py files on installation and
do not silence errors by design. Therefore, we need a way of shipping
these
invalid .py files without a .py extension but ensuring that when we
template them, they end up as .py.
We don't special-case .py files so that the all the TemplateCommand
command-line options (eg. extra_files and extensions) still work entirely
as expected and it may even be useful for other formats too.
Backport of abc0777b63057e2ff97eee2ff184356051e14c47 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25968#comment:4>