Python 3 Statsmodels & Pandas

2017-09-16 Thread Diane Trout
Hi,

Just wanted to give a progress report

I was able to build a python 3 version of statsmodels, however I wasn't
able to build it against the version of pandas in sid because pandas
can't be installed.

python3-pandas: Pandas is not installable
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875723

I tried rebuilding to get around the cython issue, but then I had some
timezone related unit test failures.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875807

Unfortunately upstream's test environments don't replicate it
https://github.com/pandas-dev/pandas/issues/17533

Looks like the tests pass with conda packages but not Debian packages.
I don't know why yet.

Diane



Re: Python 3 Statsmodels & Pandas

2017-09-16 Thread Yuri D'Elia
On Sat, Sep 16 2017, Diane Trout wrote:
> python3-pandas: Pandas is not installable
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875723

I would have expected the rebuild of python packages affected by the
fpectl extension with a transition, but it doesn't seem to be the case?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874253

More Breaks where added to {python,python3}-stdlib itself, but there are
still packages which didn't rebuild.



Re: Python 3 Statsmodels & Pandas

2017-09-16 Thread Diane Trout
On Sat, 2017-09-16 at 22:59 +0200, Yuri D'Elia wrote:
> On Sat, Sep 16 2017, Diane Trout wrote:
> > python3-pandas: Pandas is not installable
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875723
> 
> I would have expected the rebuild of python packages affected by the
> fpectl extension with a transition, but it doesn't seem to be the
> case?
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874253
> 
> More Breaks where added to {python,python3}-stdlib itself, but there
> are
> still packages which didn't rebuild.

I was assuming it's because there's a cyclic dependency between pandas
and statsmodels (needed for pandas unit tests), and statsmodels was
also broken by the fpectl problem.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875805

My solution was to use build-profiles to flag the test dependency with
!nocheck

(The diff of the control file changes, though I forgot to add python3-
statsmodels.)

I have a few rules changes too, but I need to separate the changes into
different commits.

--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: python
 Priority: optional
 Maintainer: NeuroDebian Team 
 Uploaders: Yaroslav Halchenko , Michael Hanke <
michael.hanke@g
mail.com>
-Build-Depends: debhelper (>= 7.0.50),
+Build-Depends: debhelper (>= 10),
python-all-dev (>= 2.5),
python-setuptools,
cython,
@@ -11,12 +11,11 @@ Build-Depends: debhelper (>= 7.0.50),
python-scipy,
python-tz,
python-tables [!m68k !sh4 !x32],
-   python-sphinx (>= 1.0~),
-   python-nbsphinx,
-   python-nose,
-   python-pytest,
+   python-sphinx (>= 1.0~) ,
+   python-nbsphinx ,
+   python-nose ,
+   python-pytest ,
python-matplotlib [!hurd-i386],
-   python-tk,
python-openpyxl, python-xlwt, python-xlrd,
python-bs4,
python-html5lib,
@@ -29,11 +28,10 @@ Build-Depends: debhelper (>= 7.0.50),
python3-numpy (>= 1:1.7~), python3-dateutil,
python3-scipy,
python3-tz,
-   python3-sphinx (>= 1.0~),
-   python3-nose,
-   python3-pytest,
+   python3-sphinx (>= 1.0~) ,
+   python3-nose ,
+   python3-pytest ,
python3-matplotlib [!hurd-i386]| python-matplotlib (<<
1.2.0~) [!hurd-i386],
-   python3-tk,
python3-bs4,
python3-six,
python3-lxml,
@@ -42,15 +40,15 @@ Build-Depends: debhelper (>= 7.0.50),
xvfb, xauth, xclip,
 Build-Depends-Indep:
  ipython (>= 0.12) | ipython2x | ipython1x,
- python-statsmodels [!arm64 !ppc64el !sparc64 !mips64el !ppc64
!sparc64 !sh4],
+ python-statsmodels [!arm64 !ppc64el !sparc64 !mips64el !ppc64
!sparc64 !sh4] ,



Re: Bug#729956: Python 3 Statsmodels & Pandas

2017-09-16 Thread Yuri D'Elia
On Sat, Sep 16 2017, Diane Trout wrote:
> I was assuming it's because there's a cyclic dependency between pandas
> and statsmodels (needed for pandas unit tests), and statsmodels was
> also broken by the fpectl problem.
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875805
>
> My solution was to use build-profiles to flag the test dependency with
> !nocheck

Looking at python3-skimage-lib (which also requires a rebuild), it seems
that the package failed to pass some tests.

Bug #868582 even includes a patch to update to 0.13 [and disables some
test failures].