Opened 11 years ago
Closed 10 years ago
#21845 closed Cleanup/optimization (wontfix)
Deprecate .py suffix for django-admin.py
Reported by: | Florian Apolloner | Owned by: | nobody |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | berker.peksag@… | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
We need to find a nice way to deprecate django-admin.py. Warnings probably won't work, we might wanna resort to "print(file=sys.stderr)". Docs also need updates :/
Change History (8)
comment:1 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 11 years ago
comment:3 by , 11 years ago
I believe it's the .py
suffix. In order to make the script executable on windows, we're now using a setuptools entry point. This is however impossible with a .py
suffix. (I think)
comment:4 by , 11 years ago
Summary: | Deprecate django-admin.py → Deprecate .py suffix for django-admin.py |
---|
comment:5 by , 11 years ago
Fwiw, we don't have to deprecate it and can just install both variants, if we think the deprecation isn't worth it -- eg to many programs relying on it.
comment:6 by , 11 years ago
Cc: | added |
---|
comment:7 by , 11 years ago
Severity: | Release blocker → Normal |
---|
Both variants are installed as of #21827. I tend to think deprecation may not be worth it as it doesn't seem like we gain very much besides perhaps reduced confusion from not having two ways to do the same thing). I'll leave the ticket open, but I'm unmarking it as a release blocker.
comment:8 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Doc updates were made in #23067. I'll close this for now until someone comes up with a good reason why we need to deprecate the .py
variant.
Is there some missing context to this ticket? Is it just the .py suffix we're deprecating, or the script itself? If the latter, how are we expecting people to run startproject?