[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/150: gnu: dblatex: Use custom 'build and 'install phases.
From: |
guix-commits |
Subject: |
25/150: gnu: dblatex: Use custom 'build and 'install phases. |
Date: |
Sun, 24 Apr 2022 05:12:17 -0400 (EDT) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit 4ce85c28579bb883d85a990d5ca8f386a48a04aa
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sun Nov 28 09:34:18 2021 +0100
gnu: dblatex: Use custom 'build and 'install phases.
* gnu/packages/docbook.scm (dblatex)[arguments]: Add custom 'build and
'install phases, remove obsolute #:use-setuptools?.
---
gnu/packages/docbook.scm | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index 6575bf2d75..94c2951b04 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -495,18 +495,16 @@ the in DocBook SGML DTDs.")
("docbook" ,docbook-xml)
("libxslt" ,libxslt))) ;for xsltproc
(arguments
- `(;; Using setuptools causes an invalid "package_base" path in
- ;; out/bin/.dblatex-real due to a missing leading '/'. This is caused
- ;; by dblatex's setup.py stripping the root path when creating the
- ;; script. (dblatex's setup.py still uses distutils and thus has to
- ;; create the script by itself. The feature for creating scripts is one
- ;; of setuptools' features.)
- ;; See this thread for details:
- ;; https://lists.gnu.org/archive/html/guix-devel/2016-12/msg00030.html
- #:use-setuptools? #f
- #:tests? #f ;no 'test' command
+ `(#:tests? #f ;no 'test' command
#:phases
(modify-phases %standard-phases
+ ;; The setup.py defines multiple custom commands incompatible with
wheel generation.
+ (replace 'build
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (invoke "python" "setup.py" "build")))
+ (replace 'install
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (invoke "python" "setup.py" "install" (string-append "--prefix="
(assoc-ref outputs "out")))))
(add-after 'wrap 'set-path
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
- branch wip-python-pep517 created (now d289fe92f7), guix-commits, 2022/04/24
- 01/150: build/python: Handle missing setuptools in sanity-check.py, guix-commits, 2022/04/24
- 02/150: gnu: python{,2}-setuptools: Move to python-build., guix-commits, 2022/04/24
- 31/150: gnu: python-numba: Add missing build input., guix-commits, 2022/04/24
- 34/150: gnu: python-pycairo: Install headers and pkg-config files., guix-commits, 2022/04/24
- 07/150: gnu: python-pep517-bootstrap: Update to 0.12.0., guix-commits, 2022/04/24
- 11/150: gnu: pypy: Move to separate module., guix-commits, 2022/04/24
- 33/150: gnu: python-pylama: Fix tests., guix-commits, 2022/04/24
- 27/150: gnu: python-crashtest: Build using poetry-core., guix-commits, 2022/04/24
- 25/150: gnu: dblatex: Use custom 'build and 'install phases.,
guix-commits <=
- 23/150: gnu: python-branca: Disable tests., guix-commits, 2022/04/24
- 16/150: gnu: python-mediafile: Add missing build dependencies., guix-commits, 2022/04/24
- 28/150: gnu: python-lockfile: Add missing nosetests., guix-commits, 2022/04/24
- 14/150: gnu: python-pyzmq: Fix #:configure-flags type., guix-commits, 2022/04/24
- 13/150: gnu: python-confuse: Add missing test inputs., guix-commits, 2022/04/24
- 22/150: gnu: python-funcparserlib: Disable tests., guix-commits, 2022/04/24
- 39/150: gnu: python-rencode: Disable tests., guix-commits, 2022/04/24
- 37/150: gnu: python-pycosat: Run tests., guix-commits, 2022/04/24
- 40/150: gnu: duplicity: Remove obsolete test target., guix-commits, 2022/04/24
- 45/150: gnu: epour: Remove old build flag., guix-commits, 2022/04/24