[python-django] After installation, the script is called django-admin.py, not just django-admin

Bohuslav Kabrda bkabrda at fedoraproject.org
Wed Mar 27 09:17:17 UTC 2013


commit d380c4e1dc9ad19032cb192a756d1a151d40b617
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Wed Mar 27 10:17:11 2013 +0100

    After installation, the script is called django-admin.py, not just django-admin

 python-django.spec |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/python-django.spec b/python-django.spec
index defacfc..4f0a21b 100644
--- a/python-django.spec
+++ b/python-django.spec
@@ -123,7 +123,7 @@ popd
 %if 0%{?with_python3}
 pushd %{py3dir}
 %{__python3} setup.py install --skip-build --root %{buildroot}
-mv %{buildroot}%{_bindir}/django-admin %{buildroot}%{_bindir}/python3-django-admin
+mv %{buildroot}%{_bindir}/django-admin.py %{buildroot}%{_bindir}/python3-django-admin
 popd
 %endif # with_python3
 


More information about the scm-commits mailing list