[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/103: gnu: dblatex: Use custom 'build and 'install phases.
From: |
guix-commits |
Subject: |
22/103: gnu: dblatex: Use custom 'build and 'install phases. |
Date: |
Wed, 5 Jan 2022 09:44:30 -0500 (EST) |
lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit b9f3413498f25fa0ca5c4998e2191023567f7979
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 cb1a0d4d5e..2c90f449bf 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -491,18 +491,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")))
- 04/103: gnu: python-pep517-bootstrap: Update to 0.12.0., (continued)
- 04/103: gnu: python-pep517-bootstrap: Update to 0.12.0., guix-commits, 2022/01/05
- 05/103: gnu: python-pypa-build: Replace toml with tomli., guix-commits, 2022/01/05
- 08/103: gnu: pypy: Move to separate module., guix-commits, 2022/01/05
- 14/103: gnu: python-testpath: Remove custom build phases., guix-commits, 2022/01/05
- 11/103: gnu: python-pyzmq: Fix #:configure-flags type., guix-commits, 2022/01/05
- 12/103: gnu: python-file: Remove obsolete #:configure-flags., guix-commits, 2022/01/05
- 09/103: gnu: python-charset-normalizer: Add missing input., guix-commits, 2022/01/05
- 13/103: gnu: python-mediafile: Add missing build dependencies., guix-commits, 2022/01/05
- 17/103: gnu: gusb-minimal: Add explicit dependency on setuptools., guix-commits, 2022/01/05
- 20/103: gnu: python-branca: Disable tests., guix-commits, 2022/01/05
- 22/103: gnu: dblatex: Use custom 'build and 'install phases.,
guix-commits <=
- 24/103: gnu: python-crashtest: Build using poetry-core., guix-commits, 2022/01/05
- 26/103: gnu: python-pastel: Add missing build system input., guix-commits, 2022/01/05
- 28/103: gnu: python-numba: Add missing build input., guix-commits, 2022/01/05
- 19/103: gnu: python-funcparserlib: Disable tests., guix-commits, 2022/01/05
- 36/103: gnu: python-rencode: Disable tests., guix-commits, 2022/01/05
- 40/103: gnu: python-pyfakefs: Disable tests., guix-commits, 2022/01/05
- 55/103: gnu: python-html5lib: Enable tests., guix-commits, 2022/01/05
- 07/103: gnu: python-flit: Inherit from python-flit-core., guix-commits, 2022/01/05
- 06/103: gnu: Add python-tomli-w., guix-commits, 2022/01/05
- 02/103: python-build-system: Use PEP 517-compatible builds., guix-commits, 2022/01/05