Re: [Numpy-discussion] ANN: NumPy 1.7.2rc1 release

2013-11-05 Thread Orion Poplawski
On 11/3/2013 9:42 AM, Julian Taylor wrote: > Hi all, > > I'm happy to announce the release candidate of Numpy 1.7.2. > This is a bugfix only release supporting Python 2.4 - 2.7 and 3.1 - 3.3. > > More than 37 issues were fixed, the most important issues are listed in > the release notes: > https://

Re: [Numpy-discussion] Updates on using recent mingw for numpy/scipy

2013-11-05 Thread Matthew Brett
Hi David, Thanks a lot for the update. On Tue, Nov 5, 2013 at 10:50 AM, David Cournapeau wrote: > Hi there, > > During pycon.fr sprints, I took some time to look more into building > numpy/scipy wheels on windows with recent mingw (gcc 4.x series). > > tl;dr: While I made some progress, there re

Re: [Numpy-discussion] c api, ndarray creation

2013-11-05 Thread Sergey Petrov
On Tue, 05 Nov 2013 23:22:37 +0500, Robert Kern wrote:numpy is not a C library. It is a Python extension module. You can use its C API from other Python extension modules, not C main programs. You have not started a Python interpreter or imported the numpy module. Only then will the numpy API be

Re: [Numpy-discussion] c api, ndarray creation

2013-11-05 Thread Sergey Petrov
On Tue, 05 Nov 2013 23:20:45 +0500, Jaime Fernández del Río wrote:On Tue, Nov 5, 2013 at 10:10 AM, Sergey Petrov wrote: Rather stupid question here, but I can't figure out by myself: Why does the following c program segfaults? And how can I avoid it?You need to call import_

[Numpy-discussion] Updates on using recent mingw for numpy/scipy

2013-11-05 Thread David Cournapeau
Hi there, During pycon.fr sprints, I took some time to look more into building numpy/scipy wheels on windows with recent mingw (gcc 4.x series). tl;dr: While I made some progress, there remains some hard-to-track issues. I will prepare a vagrant setup so that other people can work on this as well

Re: [Numpy-discussion] c api, ndarray creation

2013-11-05 Thread Robert Kern
On Tue, Nov 5, 2013 at 6:10 PM, Sergey Petrov wrote: > > Rather stupid question here, but I can't figure out by myself: > Why does the following c program segfaults? And how can I avoid it? > > #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION > > #include > #include > > int main(int argc, char

Re: [Numpy-discussion] c api, ndarray creation

2013-11-05 Thread Jaime Fernández del Río
On Tue, Nov 5, 2013 at 10:10 AM, Sergey Petrov wrote: > Rather stupid question here, but I can't figure out by myself: > Why does the following c program segfaults? And how can I avoid it? > You need to call import_array before using the C-API, see here: http://docs.scipy.org/doc/numpy/user/c-i

[Numpy-discussion] c api, ndarray creation

2013-11-05 Thread Sergey Petrov
Rather stupid question here, but I can't figure out by myself: Why does the following c program segfaults? And how can I avoid it? #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include #include int main(int argc, char *argv[]) { int nd=1; npy_intp dims[] = {3}; npy_intp data[] =

[Numpy-discussion] How we support new and old NumPy C API.

2013-11-05 Thread Frédéric Bastien
Hi, With recent version of NumPy, when we compile c code, by default it raise a deprecation warning. To remore it, we must of only the new NumPy C API and define a macro. The new API only exist for NumPy 1.6 and later, so if we want to support older NumPy we need to do more work. As Theano compil