Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!news.etla.org!aioe.org!bofh.it!news.nic.it!robomod From: Andreas Tille Newsgroups: linux.debian.bugs.dist,linux.debian.maint.python Subject: Bug#907806: How to disable tests for Python2 only? Date: Mon, 10 Sep 2018 16:40:02 +0200 Message-ID: References: X-Original-To: 907806@bugs.debian.org, debian-python@lists.debian.org, Debian Science List X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Sep 10 14:36:12 2018 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -2.298 Reply-To: Andreas Tille , 907806@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: NeuroDebian Team X-Debian-Pr-Message: followup 907806 X-Debian-Pr-Package: src:scikit-learn X-Debian-Pr-Keywords: ftbfs X-Debian-Pr-Source: scikit-learn X-Spam-Bayes: score:0.0000 Tokens: new, 20; hammy, 150; neutral, 58; spammy, 0. spammytokens: hammytokens:0.000-+--sk:python3, 0.000-+--H*u:NeoMutt, 0.000-+--H*UA:NeoMutt, 0.000-+--H*RU:mail.an3as.eu, 0.000-+--H*r:mail.an3as.eu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-Debian-Message: from BTS X-Mailing-List: archive/latest/1484813 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 55 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Mo Zhou X-Original-Date: Mon, 10 Sep 2018 16:33:21 +0200 X-Original-Message-ID: <20180910143321.bx6icicf5bwsbz4r@an3as.eu> X-Original-References: Xref: csiph.com linux.debian.bugs.dist:917395 linux.debian.maint.python:10879 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 , 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