[med-svn] [Git][python-team/packages/mypy][debian/experimental] 2 commits: d/rules: added a build profile extension: pkg.mypy.multifile to speed up...

Michael R. Crusoe (@crusoe) gitlab at salsa.debian.org
Thu Jan 23 12:53:31 GMT 2025



Michael R. Crusoe pushed to branch debian/experimental at Debian Python Team / packages / mypy


Commits:
ddbdd393 by Michael R. Crusoe at 2025-01-23T13:30:34+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.

- - - - -
d8b121ac by Michael R. Crusoe at 2025-01-23T13:38: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

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -9,6 +9,11 @@ mypy (1.15~rc0.1-1) experimental; urgency=medium
     the amount of parallel testing. Unbreaks the build on hurd-* where
     psutil does not work.
   * mypyc: Install googletest and lib-rt/{setup.py,*.cc} to the correct locations.
+  * 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
 
  -- Michael R. Crusoe <crusoe at debian.org>  Wed, 22 Jan 2025 19:21:23 +0100
 


=====================================
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
 



View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/41850103a53ed1a5e752268a63e8bba43c100c6c...d8b121ac5b2624910af3ce7c6b5febe243e84000

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/mypy/-/compare/41850103a53ed1a5e752268a63e8bba43c100c6c...d8b121ac5b2624910af3ce7c6b5febe243e84000
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/0073ddc7/attachment-0001.htm>


More information about the debian-med-commit mailing list