[SciPy-dev] scipy new core, build remarks
Arnd Baecker
arnd.baecker at web.de
Fri Oct 14 05:48:14 EDT 2005
Hi,
another morning, a new build ;-)
Looks fine!
There is only one warning (apart from those mentioned yesterday)
concerning dotblas:
creating build/temp.linux-x86_64-2.4/scipy/corelib/blasdot
compile options: '-DATLAS_INFO="\"3.7.11\"" -Iscipy/corelib/blasdot
-I/scr/python/include -Iscipy/base/include -Ibuild/src/scipy/base
-Iscipy/base/src -I/scr/python/include/python2.4 -c'
gcc: scipy/corelib/blasdot/_dotblas.c
scipy/corelib/blasdot/_dotblas.c: In function `dotblas_vdot':
scipy/corelib/blasdot/_dotblas.c:691: warning: passing arg 2 of pointer to
function from incompatible pointer type
gcc -pthread -shared
build/temp.linux-x86_64-2.4/scipy/corelib/blasdot/_dotblas.o
-L/scr/python/lib64 -lptf77blas -lptcblas -latlas -o
build/lib.linux-x86_64-2.4/scipy/lib/_dotblas.so
The reason for this is that in scipy/base/src/arrayobject.c
the declaration is
static PyObject *
PyArray_FromDims(int nd, int *d, int type)
whereas in _dotblas.c, routine dotblas_vdot:
ret = (PyArrayObject *)PyArray_FromDims(0, dimensions, typenum);
is used with declaration
intp dimensions[MAX_DIMS];
So either "intp"->"int" or "int"->"intp", I'd guess ;-)...
All tests run without error: scipy.test(10)
Found 2 tests for scipy.base.umath
Found 23 tests for scipy.base.function_base
Found 2 tests for scipy.base.getlimits
Found 9 tests for scipy.base.twodim_base
Found 3 tests for scipy.base.matrix
Found 44 tests for scipy.base.shape_base
Found 3 tests for scipy.basic.helper
Found 42 tests for scipy.base.type_check
Found 4 tests for scipy.base.index_tricks
Found 0 tests for __main__
Ran 132 tests in 0.362s
Installing new scipy works fine as well.
Concerning imports:
"Old" scipy:
In [1]:import scipy
In [2]:scipy.special.j0(10)
Out[2]:-0.24593576445134832
New scipy:
In [1]:import scipy
In [2]: scipy.special.j0(10)
---------------------------------------------------------------------------
exceptions.AttributeError Traceback (most recent call last)
AttributeError: 'module' object has no attribute 'special'
Instead one has to do:
In [3]: import scipy.special
In [4]: scipy.special.j0(10)
Out[4]: -0.24593576445134829
Is it planned (would it be possible?) that the"old" way works as well?
Best,
Arnd
More information about the SciPy-Dev
mailing list