<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/f2py/cfuncs.py, branch meson</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>DOC: Add reference links and switch to PyCapsule</title>
<updated>2022-10-10T14:00:08+00:00</updated>
<author>
<name>Rohit Goswami</name>
<email>rog32@hi.is</email>
</author>
<published>2022-10-10T14:00:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=eec7fdf0c35babf65c808ca7d96b50efa3b4888c'/>
<id>eec7fdf0c35babf65c808ca7d96b50efa3b4888c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Replace CObject with Capsule consistently</title>
<updated>2022-10-10T13:51:24+00:00</updated>
<author>
<name>Rohit Goswami</name>
<email>rog32@hi.is</email>
</author>
<published>2022-10-10T13:51:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=72f573c9c71092ff3ed59f7818f1b178cb5c6deb'/>
<id>72f573c9c71092ff3ed59f7818f1b178cb5c6deb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT, Haiku defines neither __STDC_NO_THREADS__ nor __GLIBC__</title>
<updated>2022-09-16T10:37:16+00:00</updated>
<author>
<name>begasus</name>
<email>begasus@gmail.com</email>
</author>
<published>2022-09-16T10:34:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=159abdfd14f2f308b31342dd8e202580926c3191'/>
<id>159abdfd14f2f308b31342dd8e202580926c3191</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: fix an incorrect pointer type usage in f2py</title>
<updated>2022-08-31T18:10:36+00:00</updated>
<author>
<name>Ralf Gommers</name>
<email>ralf.gommers@gmail.com</email>
</author>
<published>2022-08-31T18:06:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=c465c2941d10a57fb4dd8cb07454f9a4085620af'/>
<id>c465c2941d10a57fb4dd8cb07454f9a4085620af</id>
<content type='text'>
This was giving many warnings like this one in the SciPy build:
```
scipy/special/_specfunmodule.c: In function 'complex_double_from_pyobj':
scipy/special/_specfunmodule.c:198:47: warning: passing argument 1 of 'PyArray_DATA' from incompatible pointer type [-Wincompatible-pointer-types]
  198 |         (*v).r = ((npy_cdouble *)PyArray_DATA(arr))-&gt;real;
      |                                               ^~~
      |                                               |
      |                                               PyObject * {aka struct _object *}
In file included from /home/rgommers/code/numpy/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /home/rgommers/code/numpy/numpy/core/include/numpy/arrayobject.h:5,
                 from /home/rgommers/code/numpy/numpy/f2py/src/fortranobject.h:16,
                 from scipy/special/_specfunmodule.c:22:
/home/rgommers/code/numpy/numpy/core/include/numpy/ndarraytypes.h:1524:29: note: expected 'PyArrayObject *' {aka 'struct tagPyArrayObject *'} but argument is of type 'PyObject *' {aka 'struct _object *'}
 1524 | PyArray_DATA(PyArrayObject *arr)
      |              ~~~~~~~~~~~~~~~^~~
```

Fixing pointer mismatches is important for Pyodide/Emscripten.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was giving many warnings like this one in the SciPy build:
```
scipy/special/_specfunmodule.c: In function 'complex_double_from_pyobj':
scipy/special/_specfunmodule.c:198:47: warning: passing argument 1 of 'PyArray_DATA' from incompatible pointer type [-Wincompatible-pointer-types]
  198 |         (*v).r = ((npy_cdouble *)PyArray_DATA(arr))-&gt;real;
      |                                               ^~~
      |                                               |
      |                                               PyObject * {aka struct _object *}
In file included from /home/rgommers/code/numpy/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /home/rgommers/code/numpy/numpy/core/include/numpy/arrayobject.h:5,
                 from /home/rgommers/code/numpy/numpy/f2py/src/fortranobject.h:16,
                 from scipy/special/_specfunmodule.c:22:
/home/rgommers/code/numpy/numpy/core/include/numpy/ndarraytypes.h:1524:29: note: expected 'PyArrayObject *' {aka 'struct tagPyArrayObject *'} but argument is of type 'PyObject *' {aka 'struct _object *'}
 1524 | PyArray_DATA(PyArrayObject *arr)
      |              ~~~~~~~~~~~~~~~^~~
```

Fixing pointer mismatches is important for Pyodide/Emscripten.
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: Support character string arrays</title>
<updated>2022-06-05T15:19:12+00:00</updated>
<author>
<name>Pearu Peterson</name>
<email>pearu.peterson@gmail.com</email>
</author>
<published>2021-07-01T14:54:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=d4e11c7a2eb64861275facb076d47ccd135fa28c'/>
<id>d4e11c7a2eb64861275facb076d47ccd135fa28c</id>
<content type='text'>
TST: added test for issue #18684

ENH: f2py opens files with correct encoding, fixes #635

TST: added test for issue #6308

TST: added test for issue #4519

TST: added test for issue #3425

ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook.

ENH: Add support for detecting utf-16 and utf-32 encodings.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
TST: added test for issue #18684

ENH: f2py opens files with correct encoding, fixes #635

TST: added test for issue #6308

TST: added test for issue #4519

TST: added test for issue #3425

ENH: Implement user-defined hooks support for post-processing f2py data structure. Implement character BC hook.

ENH: Add support for detecting utf-16 and utf-32 encodings.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Use more NPY_OS</title>
<updated>2022-03-07T00:04:47+00:00</updated>
<author>
<name>Rohit Goswami</name>
<email>rog32@hi.is</email>
</author>
<published>2022-03-07T00:04:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=5ffe257a19c5125ad981a5de018e5d492797d2e4'/>
<id>5ffe257a19c5125ad981a5de018e5d492797d2e4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Use npy_os in f2py</title>
<updated>2022-03-06T23:17:28+00:00</updated>
<author>
<name>Rohit Goswami</name>
<email>rog32@hi.is</email>
</author>
<published>2022-01-24T11:49:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=2eda78bd78679dc7c310ae0098e3ae41a69ca6e1'/>
<id>2eda78bd78679dc7c310ae0098e3ae41a69ca6e1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Restructure includes slightly</title>
<updated>2022-03-06T23:17:24+00:00</updated>
<author>
<name>Rohit Goswami</name>
<email>rog32@hi.is</email>
</author>
<published>2022-01-24T11:41:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=6a5dccabce2865a53767e641fd7a9e3d639e31e1'/>
<id>6a5dccabce2865a53767e641fd7a9e3d639e31e1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: fix f2py's define for threading when building with Mingw</title>
<updated>2022-01-23T18:36:35+00:00</updated>
<author>
<name>Ralf Gommers</name>
<email>ralf.gommers@gmail.com</email>
</author>
<published>2022-01-23T18:01:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=0dba00e4c7ba711e858d622b15cab9618b14bd21'/>
<id>0dba00e4c7ba711e858d622b15cab9618b14bd21</id>
<content type='text'>
Closes https://github.com/rgommers/scipy/issues/125
This is a follow-up of gh-18910 (included in 1.20.3 and 1.21.0), which
looks incorrect.

This fixes warnings like these when building SciPy with Mingw-w64:
```
[94/1557] Compiling C object scipy/linalg/_flapack.cp39-win_amd64.pyd.p/meson-generated_..__flapackmodule.c.obj
In file included from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:4,
                 from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12,
                 from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4,
                 from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\f2py\src/fortranobject.h:13,
                 from scipy/linalg/_flapackmodule.c:16:
scipy/linalg/_flapackmodule.c:1248:1: warning: 'thread' attribute directive ignored [-Wattributes]
 1248 | static F2PY_THREAD_LOCAL_DECL cb_cselect_in_gees__user__routines_t *_active_cb_cselect_in_gees__user__routines = NULL;
      | ^~~~~~
scipy/linalg/_flapackmodule.c:1410:1: warning: 'thread' attribute directive ignored [-Wattributes]
 1410 | static F2PY_THREAD_LOCAL_DECL cb_zselect_in_gees__user__routines_t *_active_cb_zselect_in_gees__user__routines = NULL;
      | ^~~~~~
scipy/linalg/_flapackmodule.c:1572:1: warning: 'thread' attribute directive ignored [-Wattributes]
 1572 | static F2PY_THREAD_LOCAL_DECL cb_sselect_in_gees__user__routines_t *_active_cb_sselect_in_gees__user__routines = NULL;
      | ^~~~~~
scipy/linalg/_flapackmodule.c:1738:1: warning: 'thread' attribute directive ignored [-Wattributes]
 1738 | static F2PY_THREAD_LOCAL_DECL cb_dselect_in_gees__user__routines_t *_active_cb_dselect_in_gees__user__routines = NULL;
      | ^~~~~~

...
```

Also fixes gh-19437, where `__STDC_NO_THREADS__` should be defined but
isn't (this seems to be more common, e.g. one can reports for ICC about
this).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes https://github.com/rgommers/scipy/issues/125
This is a follow-up of gh-18910 (included in 1.20.3 and 1.21.0), which
looks incorrect.

This fixes warnings like these when building SciPy with Mingw-w64:
```
[94/1557] Compiling C object scipy/linalg/_flapack.cp39-win_amd64.pyd.p/meson-generated_..__flapackmodule.c.obj
In file included from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:4,
                 from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12,
                 from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4,
                 from C:\hostedtoolcache\windows\Python\3.9.9\x64\lib\site-packages\numpy\f2py\src/fortranobject.h:13,
                 from scipy/linalg/_flapackmodule.c:16:
scipy/linalg/_flapackmodule.c:1248:1: warning: 'thread' attribute directive ignored [-Wattributes]
 1248 | static F2PY_THREAD_LOCAL_DECL cb_cselect_in_gees__user__routines_t *_active_cb_cselect_in_gees__user__routines = NULL;
      | ^~~~~~
scipy/linalg/_flapackmodule.c:1410:1: warning: 'thread' attribute directive ignored [-Wattributes]
 1410 | static F2PY_THREAD_LOCAL_DECL cb_zselect_in_gees__user__routines_t *_active_cb_zselect_in_gees__user__routines = NULL;
      | ^~~~~~
scipy/linalg/_flapackmodule.c:1572:1: warning: 'thread' attribute directive ignored [-Wattributes]
 1572 | static F2PY_THREAD_LOCAL_DECL cb_sselect_in_gees__user__routines_t *_active_cb_sselect_in_gees__user__routines = NULL;
      | ^~~~~~
scipy/linalg/_flapackmodule.c:1738:1: warning: 'thread' attribute directive ignored [-Wattributes]
 1738 | static F2PY_THREAD_LOCAL_DECL cb_dselect_in_gees__user__routines_t *_active_cb_dselect_in_gees__user__routines = NULL;
      | ^~~~~~

...
```

Also fixes gh-19437, where `__STDC_NO_THREADS__` should be defined but
isn't (this seems to be more common, e.g. one can reports for ICC about
this).
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Clear errors correctly in F2PY conversions</title>
<updated>2021-11-18T20:38:16+00:00</updated>
<author>
<name>Rohit Goswami</name>
<email>rog32@hi.is</email>
</author>
<published>2021-11-18T20:31:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=b96fa43e2ce6f1b5a0888079e6f39f6f8d554be7'/>
<id>b96fa43e2ce6f1b5a0888079e6f39f6f8d554be7</id>
<content type='text'>
Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Sebastian Berg &lt;sebastian@sipsolutions.net&gt;
</pre>
</div>
</content>
</entry>
</feed>
