Hi, looking at the bug log of scikit-learn[1] it seems to be a simple means to do
--- a/debian/control +++ b/debian/control @@ -20,6 +20,7 @@ Build-Depends: debhelper (>= 9), dh-autoreconf, python3-pytest, python3-matplotlib, python3-joblib (>= 0.9.2), + python3-distributed <!nocheck>, libsvm-dev (>= 2.84.0), libatlas3-base, Build-Depends-Indep: Since python-distributed does not exist for Python2 I tried: --- a/debian/rules +++ b/debian/rules @@ -36,6 +36,8 @@ NOSEARGS += $(shell dpkg --print-architecture | grep -q -v ppc64el || echo --exc export http_proxy=http://127.0.0.1:9/ export https_proxy=http://127.0.0.1:9/ +export PYBUILD_TEST_ARGS_python2=-k-Xtest_import_all_consistency + # Mega rule %: : # Explicit build system to avoid use of all-in-1 Makefile (just for a test - there are more tests to exclude for Python2). However, it seems that due to the fact that this package uses --buildsystem=python_distutils instead of pybuild this method does not seem to work. Are there any other ways to exclude some tests for Python2 to make this package build again? Kind regards Andreas. PS: Yaroslav, I think we formerly agreed that it is OK to move those basic packages to Debian Science team maintenance. I would like to move the packaging to Salsa and will follow your precondition to change only the needed things to not break any backports of yours. Is this OK? [1] https://bugs.debian.org/907806 -- http://fam-tille.de