[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to disable tests for Python2 only?



On Mon, Sep 10, 2018 at 04:33:21PM +0200, Andreas Tille wrote:
> 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:
I don't think that's how build profiles work.


> However, it seems that due to the fact that this package uses
> --buildsystem=python_distutils 
Which is already a problem, as it doesn't support py3.
There is a lot of strange hacks in this rules file. I'm especially
interested in "dh_autoreconf debian/rules -- clean_generated" but that's a
question for another discussion.

> Are there any other ways to exclude some tests for Python2 to make this
> package build again?
rules call nosetests directly so I guess find out how to do that with
nosetests.

-- 
WBR, wRAR

Attachment: signature.asc
Description: PGP signature


Reply to: