[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/14: gnu: python-django: Disable django-admin wrapper.
From: |
guix-commits |
Subject: |
14/14: gnu: python-django: Disable django-admin wrapper. |
Date: |
Wed, 5 May 2021 17:49:33 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 2bb74d8a131fd9dd1d315ecd965a3e0b4d3006de
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed May 5 22:43:08 2021 +0200
gnu: python-django: Disable django-admin wrapper.
* gnu/packages/django.scm (python-django)[arguments]: Delete 'wrap' phase.
[native-inputs]: Move PYTHON-JINJA2 ...
[propagated-inputs]: ... here. While at it, add a comment about which
inputs
are optional and adjust order accordingly.
---
gnu/packages/django.scm | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 520f716..7dee3af 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -97,7 +97,13 @@
;; various race conditions. Run sequentially for
;; consistent results.
"--parallel=1"))
- (format #t "test suite not run~%")))))))
+ (format #t "test suite not run~%"))))
+ ;; XXX: The 'wrap' phase adds native inputs as runtime dependencies,
+ ;; see <https://bugs.gnu.org/25235>. The django-admin script
typically
+ ;; runs in an environment that has Django and its dependencies on
+ ;; PYTHONPATH, so just disable the wrapper to reduce the size from
+ ;; ~710 MiB to ~203 MiB.
+ (delete 'wrap))))
;; TODO: Install extras/django_bash_completion.
(native-inputs
`(("tzdata" ,tzdata-for-tests)
@@ -105,7 +111,6 @@
;; tests/requirements/py3.txt
("python-docutils" ,python-docutils)
;; optional for tests: ("python-geoip2" ,python-geoip2)
- ("python-jinja2" ,python-jinja2) ; >= 2.7
;; optional for tests: ("python-memcached" ,python-memcached)
("python-numpy" ,python-numpy)
("python-pillow" ,python-pillow)
@@ -113,14 +118,17 @@
;; optional for tests: ("python-selenium" ,python-selenium)
("python-tblib" ,python-tblib)))
(propagated-inputs
- `(("python-argon2-cffi" ,python-argon2-cffi)
- ("python-asgiref" ,python-asgiref)
- ("python-bcrypt" ,python-bcrypt)
+ `(("python-asgiref" ,python-asgiref)
("python-pytz" ,python-pytz)
+ ("python-sqlparse" ,python-sqlparse)
+
+ ;; Optional dependencies.
+ ("python-argon2-cffi" ,python-argon2-cffi)
+ ("python-bcrypt" ,python-bcrypt)
;; This input is not strictly required, but in practice many Django
;; libraries need it for test suites and similar.
- ("python-sqlparse" ,python-sqlparse)))
+ ("python-jinja2" ,python-jinja2)))
(home-page "https://www.djangoproject.com/";)
(synopsis "High-level Python Web framework")
(description
- 05/14: gnu: python-asgiref: Update to 3.3.4., (continued)
- 05/14: gnu: python-asgiref: Update to 3.3.4., guix-commits, 2021/05/05
- 06/14: gnu: python-netaddr: Update to 0.8.0., guix-commits, 2021/05/05
- 02/14: gnu: python-sqlparse: Update to 0.4.1., guix-commits, 2021/05/05
- 03/14: gnu: python-django-auth-ldap: Update to 2.4.0., guix-commits, 2021/05/05
- 07/14: gnu: python-cached-property: Update to 1.5.2., guix-commits, 2021/05/05
- 08/14: gnu: python-sqlparse: Remove unnecessary runtime dependencies., guix-commits, 2021/05/05
- 09/14: gnu: python-django-debug-toolbar: Update to 3.2.1., guix-commits, 2021/05/05
- 10/14: gnu: python-django-picklefield: Test with Django 2.2., guix-commits, 2021/05/05
- 11/14: gnu: python-djangorestframework: Update to 3.12.4., guix-commits, 2021/05/05
- 12/14: gnu: python-django: Support '--without-tests'., guix-commits, 2021/05/05
- 14/14: gnu: python-django: Disable django-admin wrapper.,
guix-commits <=
- 13/14: gnu: python-django: Update to 3.2.1., guix-commits, 2021/05/05