Verified Commit 67971207 authored by Michael R. Crusoe's avatar Michael R. Crusoe 🏳️‍🌈
Browse files

fallback to pure python on some archs

parent cd87ebcd
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
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@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
+8 −3
Original line number Diff line number Diff line
@@ -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