[SciPy-user] scipy 0.3.2 ebuild

Jan-Jan van der Vyver janjan at ini.phys.ethz.ch
Thu Oct 21 07:39:03 EDT 2004


Dear Scipy-Users,

I've added an Gentoo ebuild that works for me. It gets compiled without
problems. I am complete noob, I only updated the ebuild (based upon work
by Travis Oliphant?? I think) to get 0.3.2. It might be helpful.

I do, however, get sporadic errors, under iPython, when testing scipy.
Most of the time I get :
----------------------------------------------------------------------
Ran 972 tests in 1.796s

OK


Sometimes :
FAIL: check_cdf
(scipy.stats.distributions.test_distributions.test_fatiguelife)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "<string>", line 10, in check_cdf
AssertionError: D = 0.351919695674; pval = 0.000396083177198; alpha =
0.01
args = (1.0783474814080036,)

----------------------------------------------------------------------
Ran 972 tests in 1.776s

FAILED (failures=1)


Why is this? Is it critical?

MfG,
	Jan-Jan

PS. I'm using the 2.6.8 kernel with SMP and preemptive support.
-------------- next part --------------
# Copyright 2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header$

inherit distutils

MY_PN="SciPy_complete-${PV}"
SRC_URI="http://www.scipy.org/download/scipy/src/${MY_PN}.tar.gz"
DESCRIPTION="Open source scientific tools for Python"
HOMEPAGE="http://www.scipy.org/"
LICENSE="BSD"

SLOT="0"
IUSE="fftw wxwindows" # ?? swig vtk
KEYWORDS="~x86"
S="${WORKDIR}/${MY_PN}"

# gcc must be built with USE=f77 or atlas will fail!
DEPEND=">=dev-lang/python-2.3.3
		>=dev-python/numeric-23.3
		>=sys-devel/gcc-3
		>=dev-libs/atlas-3.6.0
		>=dev-python/imaging-1.1.4
		>=app-sci/lapack-atlas-3.2.1
		>=dev-python/f2py-2.39.235.1693
		fftw? ( =dev-libs/fftw-2.1* )
		wxwindows? ( >=dev-python/wxpython-2.4 )"

src_install() {
	# base class
	distutils_src_install

	# Extra docs
	dodoc `ls *.txt`
}

pkg_postinst() {
	# Base class
	distutils_pkg_postinst

	# Unit testing -- good form in the Python world
	einfo "Testing installation ..."
	python -c "import scipy; scipy.test(level=1)" ||  die "Unit tests failed!"

	# A helpful message re. plotting
	einfo "Emerge media-gfx/gnuplot to use the 'gplt' plotting facility"
	[ `use wxwindows` ] || \
		einfo "Set USE=wxwindows and re-emerge to use the newer 'plt' plotter"
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20041021/2f57791e/attachment.sig>


More information about the SciPy-User mailing list