me
/
guix
Archived
1
0
Fork 0

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.
master
Marius Bakke 2021-05-05 22:43:08 +02:00
parent 249fb4a303
commit 2bb74d8a13
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 14 additions and 6 deletions

View File

@ -97,7 +97,13 @@
;; various race conditions. Run sequentially for ;; various race conditions. Run sequentially for
;; consistent results. ;; consistent results.
"--parallel=1")) "--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. ;; TODO: Install extras/django_bash_completion.
(native-inputs (native-inputs
`(("tzdata" ,tzdata-for-tests) `(("tzdata" ,tzdata-for-tests)
@ -105,7 +111,6 @@
;; tests/requirements/py3.txt ;; tests/requirements/py3.txt
("python-docutils" ,python-docutils) ("python-docutils" ,python-docutils)
;; optional for tests: ("python-geoip2" ,python-geoip2) ;; optional for tests: ("python-geoip2" ,python-geoip2)
("python-jinja2" ,python-jinja2) ; >= 2.7
;; optional for tests: ("python-memcached" ,python-memcached) ;; optional for tests: ("python-memcached" ,python-memcached)
("python-numpy" ,python-numpy) ("python-numpy" ,python-numpy)
("python-pillow" ,python-pillow) ("python-pillow" ,python-pillow)
@ -113,14 +118,17 @@
;; optional for tests: ("python-selenium" ,python-selenium) ;; optional for tests: ("python-selenium" ,python-selenium)
("python-tblib" ,python-tblib))) ("python-tblib" ,python-tblib)))
(propagated-inputs (propagated-inputs
`(("python-argon2-cffi" ,python-argon2-cffi) `(("python-asgiref" ,python-asgiref)
("python-asgiref" ,python-asgiref)
("python-bcrypt" ,python-bcrypt)
("python-pytz" ,python-pytz) ("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 ;; This input is not strictly required, but in practice many Django
;; libraries need it for test suites and similar. ;; libraries need it for test suites and similar.
("python-sqlparse" ,python-sqlparse))) ("python-jinja2" ,python-jinja2)))
(home-page "https://www.djangoproject.com/") (home-page "https://www.djangoproject.com/")
(synopsis "High-level Python Web framework") (synopsis "High-level Python Web framework")
(description (description