[med-svn] [Git][python-team/packages/mypy][master] 4 commits: d/rules: step down to -O2 from -O3 for i386 during the build
Michael R. Crusoe (@crusoe)
gitlab at salsa.debian.org
Thu Mar 19 14:31:01 GMT 2026
Michael R. Crusoe pushed to branch master at Debian Python Team / packages / mypy
Commits:
7ca9cd4c by Michael R. Crusoe at 2026-03-19T09:31:13+01:00
d/rules: step down to -O2 from -O3 for i386 during the build
- - - - -
7db9185f by Michael R. Crusoe at 2026-03-19T09:59:21+01:00
d/README.source: document the mypy-specific build profiles.
- - - - -
c56ad6d0 by Michael R. Crusoe at 2026-03-19T09:59:28+01:00
d/salsa-ci.yml: skip debrebuild, it will exceed the time budget (3h).
- - - - -
982e3add by Michael R. Crusoe at 2026-03-19T15:26:47+01:00
release to unstable
- - - - -
4 changed files:
- + debian/README.source
- debian/changelog
- debian/rules
- debian/salsa-ci.yml
Changes:
=====================================
debian/README.source
=====================================
@@ -0,0 +1,13 @@
+Build profiles
+
+1. "pkg.mypy.multifile": for the self-compilation of mypy using mypyc, forces
+ the use of "multi_file" option. Useful for CI, where build time limits might
+ otherwise prevent succesful compilation.
+ "This can reduce compile time and memory requirements at the likely
+ cost of runtime performance of compiled code."
+
+2. "pkg.mypy.o1": for the self-compilation of mypy using mypyc, forces
+ the optimization level ("MYPYC_OPT_LEVEL") to be "1", which correspond to
+ compilation with "-O1". Only set during package building, not set while
+ running the tests. Useful for CI, where build time limits might otherwise
+ prevent successful compilation.
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+mypy (1.19.1-8) unstable; urgency=medium
+
+ * d/rules: step down to -O2 from -O3 for i386 during the build.
+ * d/README.source: document the mypy-specific build profiles.
+ * d/salsa-ci.yml: skip debrebuild, it will exceed the time budget
+ (3h).
+
+ -- Michael R. Crusoe <crusoe at debian.org> Thu, 19 Mar 2026 15:26:27 +0100
+
mypy (1.19.1-7) unstable; urgency=medium
* Run autopkgtests using pybuild, just like at build-time.
=====================================
debian/rules
=====================================
@@ -13,9 +13,15 @@ endif
ifneq ($(filter pkg.mypy.multifile,$(DEB_BUILD_PROFILES)),)
export MYPYC_MULTI_FILE=1
endif
-export MYPYC_DEBUG_LEVEL=2
+export build_MYPYC_DEBUG_LEVEL=2
+# Why build_MYPY* ? So we don't change how the tests work
+ifneq (,$(filter $(DEB_HOST_ARCH),hurd-i386 i386))
+ export build_MYPYC_OPT_LEVEL=2
+else
+ export build_MYPYC_OPT_LEVEL=3
+endif
ifneq ($(filter pkg.mypy.o1,$(DEB_BUILD_PROFILES)),)
- export MYPYC_OPT_LEVEL=1
+ export build_MYPYC_OPT_LEVEL=1
endif
export MYPY_TEST_PREFIX=$(CURDIR)
export TEST_MYPYC=1
@@ -50,7 +56,10 @@ 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
+ MYPY_USE_MYPYC=1 \
+ MYPYC_DEBUG_LEVEL=$(build_MYPYC_DEBUG_LEVEL) \
+ MYPYC_OPT_LEVEL=$(build_MYPYC_OPT_LEVEL) \
+ dh_auto_build
override_dh_auto_build-indep: manpages
MYPY_USE_MYPYC=0 dh_auto_build
=====================================
debian/salsa-ci.yml
=====================================
@@ -4,3 +4,4 @@ include:
variables:
SALSA_CI_DPKG_BUILDPACKAGE_ARGS: --build-profiles=pkg.mypy.multifile,pkg.mypy.o1
+ SALSA_CI_DISABLE_DEBREBUILD: 1
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/2879734e93495f357e5feacc978582ec538c5434...982e3add17c73ef4f29c8ef53125903f92f39aa4
--
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/2879734e93495f357e5feacc978582ec538c5434...982e3add17c73ef4f29c8ef53125903f92f39aa4
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/20260319/737e815c/attachment-0001.htm>
More information about the debian-med-commit
mailing list