Opened 11 years ago
Closed 11 years ago
#21340 closed Bug (fixed)
Can't run django-admin.py on Windows
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Packaging | Version: | dev |
Severity: | Normal | Keywords: | windows setuptools distutils setup.py |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
On Windows, setuptools usually installs a .exe file in Python\Scripts (which is typically on the path) so that it can be run from the console.
Because Django uses distutils, that script is not executable. The only way to run it is to use the full path to it or to copy it to the current directory (as stated in the docs).
I proposed a very simple pull request that uses setuptools's entry_point mechanism to create the .exe wrapper, if setuptools is installed.
There is no change in behavior if setuptools is not available (distutils will be used) and probably very few changes on UNIX systems (except that the django-admin.py entry point will be created by setuptools, instead of being copied from the django/bin directory).
Related discussions:
- email thread email thread Discussions on dropping ez_setup.py
- email thread Discussion about having django-admin.py be executable on Windows
- ticket #11023 Previous discussion on replacing distutils with setuptools (wontfix)
Attachments (1)
Change History (5)
by , 11 years ago
Attachment: | 1812.patch added |
---|
comment:1 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 11 years ago
Type: | Uncategorized → Bug |
---|---|
Version: | → master |
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Here's another mailing list thread about this.