Package: src:nipy
Version: 0.3.0+git262-gbb838d7-1
User: sanv...@debian.org
Usertags: binary-indep
Severity: important
Dear maintainer:
I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:
[...]
debian/rules build-indep
dh --buildsystem=python_distutils --with=python2 build-indep
dh_testdir -i -O--buildsystem=python_distutils
dh_update_autotools_config -i -O--buildsystem=python_distutils
dh_auto_configure -i -O--buildsystem=python_distutils
debian/rules override_dh_auto_build
make[1]: Entering directory '/<>/nipy-0.3.0+git262-gbb838d7'
dh_auto_build
pyversions: missing X(S)-Python-Version in control file, fall back to
debian/pyversions
python-dbg setup.py build --force
Missing optional package "mayavi"; you may get run-time errors
lapack_opt_info:
[... snipped ...]
==
ERROR: nipy.algorithms.statistics.tests.test_empirical_pvalue.test_efdr
--
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File
"/<>/nipy-0.3.0+git262-gbb838d7/debian/tmp/usr/lib/python2.7/dist-packages/nipy/algorithms/statistics/tests/test_empirical_pvalue.py",
line 30, in test_efdr
np.testing.assert_array_less(efdr.fdr(3.0), 0.2)
File
"/<>/nipy-0.3.0+git262-gbb838d7/debian/tmp/usr/lib/python2.7/dist-packages/nipy/algorithms/statistics/empirical_pvalue.py",
line 308, in fdr
self.fdrcurve()
File
"/<>/nipy-0.3.0+git262-gbb838d7/debian/tmp/usr/lib/python2.7/dist-packages/nipy/algorithms/statistics/empirical_pvalue.py",
line 232, in fdrcurve
self.learn()
File
"/<>/nipy-0.3.0+git262-gbb838d7/debian/tmp/usr/lib/python2.7/dist-packages/nipy/algorithms/statistics/empirical_pvalue.py",
line 204, in learn
hist, ledge = np.histogram(x, bins=bins)
File "/usr/lib/python2.7/dist-packages/numpy/lib/function_base.py", line 249,
in histogram
n += np.bincount(indices, weights=tmp_w, minlength=bins).astype(ntype)
ValueError: operands could not be broadcast together with shapes (132,) (133,)
(132,)
==
FAIL:
nipy.algorithms.statistics.models.tests.test_olsR.test_results(11.593162207505021,
11.59314014427966, 6)
--
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 513, in
assert_almost_equal
raise AssertionError(_build_err_msg())
AssertionError:
Arrays are not almost equal to 6 decimals
ACTUAL: 11.593162207505021
DESIRED: 11.59314014427966
--
Ran 4535 tests in 157.347s
FAILED (SKIP=6, errors=1, failures=1)
debian/rules:57: recipe for target 'test' failed
make[1]: *** [test] Error 1
make[1]: Leaving directory '/<>/nipy-0.3.0+git262-gbb838d7'
debian/rules:19: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit
status 2
Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:
* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.
* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").
Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.
Thanks.