Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10066
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Christoph Groth <christoph@grothesque.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Parallelizing a submake of debian/rules |
| Date | Wed, 17 Jan 2018 15:10:01 +0100 |
| Message-ID | <v8WzD-8pO-1@gated-at.bofh.it> (permalink) |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Wed Jan 17 14:00:52 2018 |
| Old-Return-Path | <christoph@grothesque.org> |
| X-Amavis-Spam-Status | No, score=-11.881 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -7 |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
| MIME-Version | 1.0 |
| Content-Type | multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/15461 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/87lggwr3er.fsf@grothesque.org |
| Approved | robomod@news.nic.it |
| Lines | 79 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Wed, 17 Jan 2018 15:00:28 +0100 |
| X-Original-Message-ID | <87lggwr3er.fsf@grothesque.org> |
| Xref | csiph.com linux.debian.maint.python:10066 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Hello, (Please keep me CCed, I'm not subscribed to debian-python.) I'm working on packaging the libraries Kwant [1] and Tinyarray [2] (a dependency for Kwant) for Debian. The Debian packaging was done in git repositories [3] [4] and seems finished. I'm not satisfied with one aspect of it, however: build parallelization does not work, i.e. running gbp buildpackage -j4 does not result in a parallel build. There are several parts of the build process of Kwant that could be parallelized. The only one that I'd like to consider here is the one that is consuming the most time: the generation of figures for the HTML documentation from patched example scripts. Having cloned [1], one can build the documentation in parallel like this: ./setup.py build cd doc make -j4 html In the Debian packaging [3] this is done in debian/rules like this: # Make documentation only if needed. ifneq "$(shell dh_listpackages | grep -- -doc)" "" PY3VER = $(shell python3 --version | cut -d' ' -f2 | cut -d. -f1,2) override_dh_installdocs: PYTHONPATH=$(CURDIR)/debian/python3-kwant/usr/lib/python$(PY3VER)/dist-packages \ LC_ALL=C.UTF-8 $(MAKE) -C doc html dh_installdocs endif But the submake launchd by "$(MAKE)" is not a parallel one. I have enabled parallel builds by giving the --parallel option to "dh", and I launch gbp buildpackage with "-j4". Moreover, DEB_BUILD_OPTIONS is set to "parallel=4", but all to no avail. The only way to make it work is to add an explicit "-j" to the make invocation in debian/rules, but that's certainly not the way it should be done. I'm grateful for any hints on how to fix the situation. Thanks, Christoph [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886418 [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886628 [3] https://gitlab.kwant-project.org/kwant/debian-kwant [4] https://gitlab.kwant-project.org/kwant/debian-tinyarray
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Parallelizing a submake of debian/rules Christoph Groth <christoph@grothesque.org> - 2018-01-17 15:10 +0100
csiph-web