Commit 3669eba5 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

debian: compile for all supported Python3 versions

* debian/rules: Build for all supported python3 versions.
* NEWS: Mention it.
parent 9e7d0677
......@@ -44,6 +44,8 @@ New in spot 1.99.4a (not yet released)
* Add bindings for complete() and dtwa_complement()
* Formulas now have a custom __format__ function. See for examples.
* The Debian package is now compiled for all Python3 versions
supported by Debian, not just the default one.
Bugs fixed:
......@@ -39,7 +39,8 @@ PRO1SETUP = \
CFLAGS='-flto -fprofile-use' \
CXXFLAGS='-flto -fprofile-use'
PYSETUP = PYTHON=/usr/bin/python3
PYDEFAULT=$(shell py3versions --default)
PYOTHERS=$(filter-out $(PYDEFAULT), $(shell py3versions --supported))
# There seem to be a problem with unwinding of exception handling when
# the binaries are compiled with -flto. For instance in autfilt,
......@@ -57,17 +58,27 @@ FLTOWORKAROUND = perl -pi -e s/-flto// src/bin/Makefile
dh_auto_configure -- $(PRO1SETUP) $(LTOSETUP) \
--disable-devel --enable-optimizations \
--disable-static $(PYSETUP)
--disable-static PYTHON=/usr/bin/$(PYDEFAULT)
make clean
dh_auto_configure -- $(PRO2SETUP) $(LTOSETUP) \
--disable-devel --enable-optimizations \
--disable-static $(PYSETUP)
--disable-static PYTHON=/usr/bin/$(PYDEFAULT)
override_dh_auto_install: fix-mathjax
dh_auto_install --destdir=$(CURDIR)/debian/tmp
# Reconfigure for every other supported Python3 version,
# and build/install only the python code.
for pyv in $(PYOTHERS); do \
dh_auto_configure -- $(LTOSETUP) \
--disable-devel --enable-optimizations \
--disable-static PYTHON=/usr/bin/$$pyv; \
dh_auto_build -- -C wrap/python clean; \
dh_auto_build -- -C wrap/python all; \
dh_auto_install -- -C wrap/python; \
find debian/tmp -name '*.la' -exec rm -rv {} ';'
dh_python3 -p python3-spot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment