Michael R. Crusoe pushed to branch master at Debian Python Team / packages / mypy
Commits: 120b13af by Michael R. Crusoe at 2025-01-24T10:49:56+01:00 d/rules: added a build profile extension: pkg.mypy.multifile to speed up compilation by enabling MYPYC_MULTI_FILE=1 even on architectures where we don't normally do that. - - - - - 5d117c06 by Michael R. Crusoe at 2025-01-24T10:50:11+01:00 d/rules: added a build profile extension: pkg.mypy.o1 to speed up compilation by enabling MYPYC_OPT_LEVEL=1 → -O1 instead of -O3 - - - - - 546799c2 by Michael R. Crusoe at 2025-01-24T10:50:21+01:00 d/rules: enable building the python extensions in parallel, respecting DEB_BUILD_OPTIONS. - - - - - e2b9e85a by Michael R. Crusoe at 2025-01-24T10:50:51+01:00 d/salsa-ci.yml: Enable both of the speed-up build profiles to hopefully finish the build within the 3 hour limit. - - - - - 3 changed files: - debian/changelog - debian/rules - debian/salsa-ci.yml Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,17 @@ +mypy (1.14.1-4) UNRELEASED; urgency=medium + + * d/rules: added a build profile extension: pkg.mypy.multifile to speed up + compilation by enabling MYPYC_MULTI_FILE=1 even on architectures where + 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. + * d/salsa-ci.yml: Enable both of the speed-up build profiles to hopefully + finish the build within the 3 hour limit. + + -- Michael R. Crusoe <[email protected]> Fri, 24 Jan 2025 10:21:23 +0100 + mypy (1.14.1-3) unstable; urgency=medium * d/rules: use DEB_BUILD_OPTION_PARALLEL instead of "auto" for setting ===================================== debian/rules ===================================== @@ -12,6 +12,10 @@ ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf mips64el hppa riscv64 mipsel alpha export MYPYC_MULTI_FILE=1 endif +ifneq ($(filter pkg.mypy.multifile,$(DEB_BUILD_PROFILES)),) + export MYPYC_MULTI_FILE=1 +endif + export DEB_CFLAGS_MAINT_APPEND += -Wno-misleading-indentation ifneq (,$(filter $(DEB_HOST_ARCH_CPU),i386 x32)) @@ -20,6 +24,10 @@ else export MYPYC_DEBUG_LEVEL=2 endif +ifneq ($(filter pkg.mypy.o1,$(DEB_BUILD_PROFILES)),) + export MYPYC_OPT_LEVEL=1 +endif + %: dh $@ --buildsystem=pybuild @@ -43,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 ===================================== debian/salsa-ci.yml ===================================== @@ -1,4 +1,6 @@ --- include: - - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml - - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml + +variables: + SALSA_CI_DPKG_BUILDPACKAGE_ARGS: --build-profiles=pkg.mypy.multifile,pkg.mypy.o1 View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/bfd1614cca83ffc9929afbb1c6852666020746ee...e2b9e85a48ba5243a4f854197108054cc2037909 -- View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/bfd1614cca83ffc9929afbb1c6852666020746ee...e2b9e85a48ba5243a4f854197108054cc2037909 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
