[Numpy-discussion] Clarification sought on Scipy Numpy version requirements.

Charles R Harris charlesr.harris at gmail.com
Sun Jun 21 14:13:50 EDT 2015


On Sun, Jun 21, 2015 at 11:49 AM, Charles R Harris <
charlesr.harris at gmail.com> wrote:

>
>
> On Sun, Jun 21, 2015 at 9:57 AM, Ralf Gommers <ralf.gommers at gmail.com>
> wrote:
>
>>
>>
>> On Sun, Jun 21, 2015 at 5:45 PM, Charles R Harris <
>> charlesr.harris at gmail.com> wrote:
>>
>>>
>>>
>>> On Sun, Jun 21, 2015 at 9:31 AM, Ralf Gommers <ralf.gommers at gmail.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Sun, Jun 21, 2015 at 5:13 PM, Charles R Harris <
>>>> charlesr.harris at gmail.com> wrote:
>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sun, Jun 21, 2015 at 7:14 AM, Ralf Gommers <ralf.gommers at gmail.com>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Jun 19, 2015 at 11:52 PM, Charles R Harris <
>>>>>> charlesr.harris at gmail.com> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Jun 19, 2015 at 3:05 PM, Sturla Molden <
>>>>>>> sturla.molden at gmail.com> wrote:
>>>>>>>
>>>>>>>> Charles R Harris <charlesr.harris at gmail.com> wrote:
>>>>>>>>
>>>>>>>> > I'm looking to change some numpy deprecations into errors as well
>>>>>>>> as remove
>>>>>>>> > some deprecated functions. The problem I see is that
>>>>>>>> > SciPy claims to support Numpy >= 1.5 and Numpy 1.5 is really,
>>>>>>>> really, old.
>>>>>>>> > So the question is, does "support" mean compiles with earlier
>>>>>>>> versions
>>>>>>>> > of Numpy ?
>>>>>>>>
>>>>>>>> It means there is a Travis CI build with NumPy 1.6.2. So any change
>>>>>>>> to the
>>>>>>>> SciPy source code must compile with NumPy 1.6 and any later version
>>>>>>>> of
>>>>>>>> NumPy.
>>>>>>>>
>>>>>>>> There is no Travis CI build with NumPy 1.5. I don't think we know
>>>>>>>> for sure
>>>>>>>> if it is really compatible with the current SciPy.
>>>>>>>>
>>>>>>>
>>>>> There is still a reference to 1.5 in Scipy, I forget where.
>>>>>
>>>>
>>>> In INSTALL.rst.txt, will fix that now.
>>>>
>>>>
>>> Ralf, I cannot compile Scipy 0.13.3 on my system, it seems to fail here
>>>
>>> Error compiling Cython file:
>>> ------------------------------------------------------------
>>> ...
>>> # and object. In this file, only NULL is passed to these parameters.
>>> cdef extern from *:
>>>     cnp.ndarray PyArray_CheckFromAny(object, void*, int, int, int, void*)
>>>     cnp.ndarray PyArray_FromArray(cnp.ndarray, void*, int)
>>>
>>> from . cimport cython_blas as blas_pointers
>>> ^
>>> ------------------------------------------------------------
>>>
>>> _decomp_update.pyx:60:0: 'cython_blas.pxd' not found
>>>
>>>
>>> Although it is hard to tell, the traceback doesn't give much useful
>>> information. I suspect this is due to a cython version mismatch, as it
>>> seems to be looking for cython_blas.pxd but only cython_blas.c is
>>> available. Have you seen this before?
>>>
>>>
>> That's code that was only introduced for 0.16.x; a ``git clean -xdf``
>> should fix this for you.
>>
>> Next obstacle: I think it'll fail with Cython 0.22, you'll need a lower
>> Cython version (probably around 0.19.x).
>>
>>
> Looks like Scipy 0.13.3 is OK against master apart from a bunch of runtime
> errors due to deprecation warnings, precision changes, TypeErrors due to
> default casting rule changes, and new runtime warnings about empty slices.
> I wouldn't recommend it for use with Numpy 1.10, but it is probably not
> fatal to do so. Nothing changes with the deprecation removals added.
>
>
Scipy 0.14.1 is clean except for InvalidValue warnings and is probably the
earliest I'd recommend as "safe". It was released 6 months ago. Scipy
0.14.0 actually has fewer errors, those resulting from the changes to
default casting rules, so is probably usable also, it was released about a
year ago.

Ralf, thoughts?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150621/2fa26b4a/attachment.html>


More information about the NumPy-Discussion mailing list