[med-svn] [Git][med-team/mypy][master] fallback to pure python on some archs

Michael R. Crusoe gitlab at salsa.debian.org
Tue Oct 29 19:59:16 GMT 2019



Michael R. Crusoe pushed to branch master at Debian Med / mypy


Commits:
67971207 by Michael R. Crusoe at 2019-10-29T19:49:35Z
fallback to pure python on some archs

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+mypy (0.740-6) unstable; urgency=medium
+
+  * As MYPYC enabled builds are not working on mips64el, mipsel, ia64, powerpc, or
+    sh4 then don't compile to C on those platforms.
+
+ -- Michael R. Crusoe <michael.crusoe at gmail.com>  Tue, 29 Oct 2019 20:49:18 +0100
+
 mypy (0.740-5) unstable; urgency=medium
 
   * Some armhf builders have enough memeory for -O2 (arm-arm-01) but others


=====================================
debian/rules
=====================================
@@ -16,12 +16,13 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 include /usr/share/dpkg/default.mk
 ifneq (,$(filter $(DEB_HOST_ARCH),riscv64))
   export MYPYC_OPT_LEVEL=2
-else ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf alpha ia64 m68k))
+else ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf m68k))
   export MYPYC_OPT_LEVEL=1
-else ifneq (,$(filter $(DEB_HOST_ARCH),mips64el mipsel powerpc sh4))
+else ifneq (,$(filter $(DEB_HOST_ARCH),alpha))
   export MYPYC_OPT_LEVEL=0
 endif
 
+
 %:
 	dh $@ --with python3$(WITH) --buildsystem=pybuild
 
@@ -45,7 +46,11 @@ debian/stubgen_options.rst: docs/source/stubgen.rst
 	sed -n -e '/stubgen --help/,$$ {/stubgen --help/d; p}' $< > $@
 
 override_dh_auto_build: manpages
-	export MYPY_USE_MYPYC=1; dh_auto_build
+ifneq (,$(filter $(DEB_HOST_ARCH),mips64el mipsel ia64 powerpc sh4))
+	MYPY_USE_MYPYC=0 dh_auto_build
+else
+	MYPY_USE_MYPYC=1 dh_auto_build
+endif
 ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
 	PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
 endif



View it on GitLab: https://salsa.debian.org/med-team/mypy/commit/67971207e6f025bc5678601dbc49e48a4dd6e284

-- 
View it on GitLab: https://salsa.debian.org/med-team/mypy/commit/67971207e6f025bc5678601dbc49e48a4dd6e284
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/20191029/289e27b7/attachment-0001.html>


More information about the debian-med-commit mailing list