Source: quantlib-swig Version: 1.13-4 Severity: normal Tags: patch Dear Maintainer,
Currently the build process builds only for the default version of Python 3. It's not hard to build for all supported versions, see attached. Cheers, mwh -- System Information: Debian Release: buster/sid APT prefers bionic-updates APT policy: (500, 'bionic-updates'), (500, 'bionic-security'), (500, 'bionic'), (400, 'bionic-proposed'), (100, 'bionic-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.15.0-33-generic (SMP w/4 CPU cores) Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru quantlib-swig-1.13/debian/changelog quantlib-swig-1.13/debian/changelog --- quantlib-swig-1.13/debian/changelog 2018-08-22 14:42:27.000000000 +1200 +++ quantlib-swig-1.13/debian/changelog 2018-09-05 13:47:00.000000000 +1200 @@ -1,3 +1,9 @@ +quantlib-swig (1.13-4ubuntu1~ppa1) UNRELEASED; urgency=medium + + * Build for all supported versions of Python 3. + + -- Michael Hudson-Doyle <[email protected]> Wed, 05 Sep 2018 13:47:00 +1200 + quantlib-swig (1.13-4) unstable; urgency=medium * debian/rules: Refine compilerflags for i386 (on amd64) and others diff -Nru quantlib-swig-1.13/debian/control quantlib-swig-1.13/debian/control --- quantlib-swig-1.13/debian/control 2018-08-21 04:21:52.000000000 +1200 +++ quantlib-swig-1.13/debian/control 2018-09-05 13:47:00.000000000 +1200 @@ -1,7 +1,8 @@ Source: quantlib-swig Priority: optional Section: interpreters -Maintainer: Dirk Eddelbuettel <[email protected]> +Maintainer: Ubuntu Developers <[email protected]> +XSBC-Original-Maintainer: Dirk Eddelbuettel <[email protected]> Standards-Version: 4.1.5 Build-Depends: debhelper (>= 10), python, python3-all-dev, libquantlib0-dev (>= 1.12), gcc (>= 4:5.2), g++ (>= 4:5.2), libboost-dev (>= 1.34.0), libboost-test-dev (>= 1.34.0), dh-python diff -Nru quantlib-swig-1.13/debian/rules quantlib-swig-1.13/debian/rules --- quantlib-swig-1.13/debian/rules 2018-08-22 14:42:27.000000000 +1200 +++ quantlib-swig-1.13/debian/rules 2018-09-05 13:47:00.000000000 +1200 @@ -19,7 +19,7 @@ arch := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU) cpu := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU) -PYTHON := $(shell py3versions -d) +PYTHONS := $(shell py3versions -s) RUBY := ruby #export DH_VERBOSE=1 @@ -99,12 +99,13 @@ --build $(arch) # $(MAKE) - (cd Python && \ - CC="$(cxxcompiler)" \ - CXX="$(cxxcompiler)" \ - CFLAGS="$(compilerflags)" \ - CXXFLAGS="$(compilerflags)" \ - $(PYTHON) setup.py build ) + (cd Python && for python in $(PYTHONS); do \ + CC="$(cxxcompiler)" \ + CXX="$(cxxcompiler)" \ + CFLAGS="$(compilerflags)" \ + CXXFLAGS="$(compilerflags)" \ + $$python setup.py build; \ + done ) # (cd Ruby && \ # CC="$(cxxcompiler)" \ @@ -128,7 +129,9 @@ #ifeq "$(findstring $(arch), m68k arm)" "" ifeq ($(cpu),i486) # -$(MAKE) test - (cd Python && $(PYTHON) setup.py test ) + (cd Python && for python in $(PYTHONS); do \ + $$python setup.py test; \ + done ) #(cd Ruby && $(RUBY) setup.rb test ) endif touch test-stamp @@ -138,8 +141,9 @@ dh_testroot rm -f build-stamp test-stamp install-stamp -test -f Makefile && $(MAKE) realclean - (cd Python && \ - $(PYTHON) setup.py clean --all && \ + (cd Python && for python in $(PYTHONS); do \ + $$python setup.py clean --all; \ + done && \ rm -f QuantLib/*.pyc ) # (cd Ruby && \ # rm -f quantlib_wrap.o QuantLibc.so ) @@ -153,9 +157,11 @@ dh_installdirs -p$(pypackage) usr/share/$(pypackage) #$(MAKE) install PREFIX=$(debtmp)/usr (cd Python && \ - $(PYTHON) setup.py \ - install --prefix=$(pydeb)/usr \ - --install-layout=deb ) + for python in $(PYTHONS); do \ + $$python setup.py \ + install --prefix=$(pydeb)/usr \ + --install-layout=deb; \ + done ) # edd 2005-Apr-14 copy swig file manually instead cp -vax SWIG/* $(pydeb)/usr/share/$(pypackage)/

