Actually, the SyntaxError issue isn't related to pip but to setuptools 5.5
and 5.5.1 (Debian stable ships the latter).
Florian, your preference is to decline the change proposed by Chris and
just deal with any support queries when people see a log like below? I
understand it's not ideal to add workarounds for bugs in other software as
the proposal does, but it seems like a pragmatic solution to me.
$ pip install Django==1.9c2
Downloading/unpacking Django==1.9c2
Downloading Django-1.9rc2-py2.py3-none-any.whl (6.4MB): 6.4MB downloaded
Installing collected packages: Django
Found existing installation: Django 1.9c1
Uninstalling Django:
Successfully uninstalled Django
Compiling
/home/tim/.virtualenvs/tmp-65a61cac481337a0/build/Django/django/conf/app_template/apps.py
...
File
"/home/tim/.virtualenvs/tmp-65a61cac481337a0/build/Django/django/conf/app_template/apps.py",
line 4
class {{ camel_case_app_name }}Config(AppConfig):
^
SyntaxError: invalid syntax
Compiling
/home/tim/.virtualenvs/tmp-65a61cac481337a0/build/Django/django/conf/app_template/models.py
...
File
"/home/tim/.virtualenvs/tmp-65a61cac481337a0/build/Django/django/conf/app_template/models.py",
line 1
{{ unicode_literals }}from django.db import models
^
SyntaxError: invalid syntax
Successfully installed Django
Cleaning up...
On Saturday, November 28, 2015 at 8:47:13 PM UTC-5, Florian Apolloner wrote:
>
> Damn, I meant to write "and not real packages"
>
> On Sunday, November 29, 2015 at 2:46:22 AM UTC+1, Florian Apolloner wrote:
>>
>>
>>
>> On Saturday, November 28, 2015 at 7:16:10 PM UTC+1, lamby wrote:
>>>
>>> > at least project_template would be missing etc
>>>
>>> Deliberately so; these are not invalid .py files.
>>>
>>
>> Yes, but by luck and/or accident. In the end they are still package data
>> and real packages, so you should never run pycompile on them in the first
>> place.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" 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].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/a2353277-0b8b-4d64-8ef0-661afeecfdf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.