[med-svn] [Git][python-team/packages/mypy][debian/experimental] d/rules: enable building the python extensions in parallel, respecting DEB_BUILD_OPTIONS.
Michael R. Crusoe (@crusoe)
gitlab at salsa.debian.org
Thu Jan 23 15:50:08 GMT 2025
Michael R. Crusoe pushed to branch debian/experimental at Debian Python Team / packages / mypy
Commits:
dc6fcce9 by Michael R. Crusoe at 2025-01-23T16:42:17+01:00
d/rules: enable building the python extensions in parallel, respecting DEB_BUILD_OPTIONS.
- - - - -
3 changed files:
- debian/changelog
- + debian/extra-setup.cfg
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -14,6 +14,8 @@ mypy (1.15~rc0.1-1) experimental; urgency=medium
we don't normally do that.
* d/rules: added a build profile extension: pkg.mypy.o1 to speed up
compilation by enabling MYPYC_OPT_LEVEL=1 → -O1 instead of -O3
+ * d/rules: enable building the python extensions in parallel, respecting
+ DEB_BUILD_OPTIONS.
-- Michael R. Crusoe <crusoe at debian.org> Wed, 22 Jan 2025 19:21:23 +0100
=====================================
debian/extra-setup.cfg
=====================================
@@ -0,0 +1,2 @@
+[build_ext]
+parallel = 4
=====================================
debian/rules
=====================================
@@ -51,7 +51,9 @@ debian/sphinx/stubgen_options.rst: docs/source/stubgen.rst
sed -n -e '/stubgen --help/,$$ {/stubgen --help/d; p}' $< > $@
override_dh_auto_build-arch:
- MYPY_USE_MYPYC=1 dh_auto_build
+ echo "[build_ext]\nparallel=$(DEB_BUILD_OPTION_PARALLEL)\n" > $(CURDIR)/debian/extra-setup.cfg
+ DIST_EXTRA_CONFIG=$(CURDIR)/debian/extra-setup.cfg MYPY_USE_MYPYC=1 dh_auto_build
+ rm $(CURDIR)/debian/extra-setup.cfg
override_dh_auto_build-indep: manpages
MYPY_USE_MYPYC=0 dh_auto_build
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/commit/dc6fcce96341163fba81ed46a3990e28fe27bbe5
--
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/commit/dc6fcce96341163fba81ed46a3990e28fe27bbe5
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250123/60cdf024/attachment-0001.htm>
More information about the debian-med-commit
mailing list