| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\
| |
| | |
BUG: Fix KeyError in crackfortran operator support
|
| | |
|
|\ \
| |/
|/| |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was giving a lot of warnings like:
numpy/f2py/src/fortranobject.h:9: warning: "NPY_NO_DEPRECATED_API" redefined
when building SciPy. In general, this is generated code which is
included in the build of other projects which may have already set this
macro - so only set it if it is not yet set.
The other change is to set it to the current numpy version, like is done
everywhere else in numpy, rather than to a fixed 1.7 version.
This will ensure that if new deprecations happen, f2py gets updated for
them.
|
| |
|
| |
|
|\
| |
| | |
Co-authored-by: Rohit Goswami <rog32@hi.is>
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
| |
Add to the 'vars' list of a module missing subroutines
or functions listed in the 'body' that have not been
explicitely declared 'public' or 'private'.
|
| |
|
|\
| |
| | |
TST: Skip F2PY tests without Fortran compilers
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|
| |
|
| |
|
|\
| |
| | |
MAINT: Reduce f2py verbiage for valid parameters
|
| | |
|
| |
| |
| |
| |
| | |
Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com>
Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
|
| | |
|
| | |
|
|\ \
| |/
|/| |
ENH: F2PY build output determinism
|
| |
| |
| |
| |
| |
| | |
Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com>
Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
|
| |
| |
| |
| |
| |
| | |
Also remove FutureWarning and update documentation
Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Increases F2PY coverage by around 15 percent. For the CLI itself it covers the major features (around 70 percent), with the exception of mostly numpy.distutils stuff.
More importantly, sets the groundwork for #20056, in that passing the same testsuite should indicate feature parity.
|
| |
| |
| | |
Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com>
|
|\ \
| | |
| | | |
MAINT: Minor cleanup to F2PY
|
| | | |
|
| | | |
|
| |/ |
|
|/
|
|
| |
Fixes numpy/numpy#21204
|
|\
| |
| | |
DOC: Refactoring f2py user guide
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(#20940)
* MAINT: f2py: don't generate code that triggers `-Wsometimes-uninitialized`
Warnings look like:
```
scipy/linalg/_flapackmodule.c:2200:9: warning: variable 'return_value' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (capi_j>capi_i)
^~~~~~~~~~~~~
scipy/linalg/_flapackmodule.c:2217:12: note: uninitialized use occurs here
return return_value;
^~~~~~~~~~~~
scipy/linalg/_flapackmodule.c:2200:5: note: remove the 'if' if its condition is always true
if (capi_j>capi_i)
^~~~~~~~~~~~~~~~~~
scipy/linalg/_flapackmodule.c:2099:21: note: initialize the variable 'return_value' to silence this warning
int return_value;
^
= 0
```
Also:
- Initialize complex return value.
- Warn on non-void callback returning None.
- Use brackets in if-else block.
This makes the code more readable.
Co-authored-by: Pearu Peterson <pearu.peterson@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Allow to parse type definition with inline acess specifier, like:
type, public :: foo
end type foo
|
|\ \ \
| | | |
| | | | |
MAINT, DOC: fix new typos detected by codespell
|
| | |/
| |/| |
|