id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 21340 Can't run django-admin.py on Windows remirampin@… nobody "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 [https://docs.djangoproject.com/en/dev/ref/django-admin/ the docs]). I proposed a very simple [https://github.com/django/django/pull/1812 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: * [https://groups.google.com/forum/#!topic/django-developers/rwAnZYIbXlc email thread] [https://groups.google.com/d/msg/django-developers/TX6a5uphLCM/a4Wi7bTr9r0J email thread] Discussions on dropping ez_setup.py * [https://groups.google.com/d/msg/django-developers/jpsQ5i99apk/ZeCc23hWE1cJ email thread] Discussion about having django-admin.py be executable on Windows * [https://code.djangoproject.com/ticket/11023 ticket #11023] Previous discussion on replacing distutils with setuptools (wontfix)" Bug closed Packaging dev Normal fixed windows setuptools distutils setup.py Accepted 1 0 0 0 0 0