| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This reverts commit 6b5cd92675139511b4b24ddfe822e96b03700edb.
|
|
|
|
|
|
|
| |
Updates the free format handling of .f90 and other common extensions (through a minor re-write). Also removes an unused function.
This disallows previously allowed (but highly unlikely to be present) code-paths, namely having fixed form F77 code in a fortran 90 file (with .f90).
Co-authored-by: Sebastian Berg <sebastianb@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#22872)
* BUG: Use whole file for encoding checks [f2py]
* DOC: Add a code comment
Co-authored-by: melissawm <melissawm@gmail.com>
* TST: Add a conditional unicode f2py test
* MAINT: Add chardet as a test requirement
* ENH: Cleanup and switch f2py to charset_normalizer
* MAINT: Remove chardet for charset_normalizer
* TST: Simplify UTF-8 encoding [f2py]
Co-authored-by: melissawm <melissawm@gmail.com>
|
| |
|
|\
| |
| | |
MAINT: change subprocess arguments from Python>=3.7
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
| |
In some cases, the replacement is clearly not what is intended,
in those (where setup was called explicitly), I mostly renamed
`setup` to `_setup`.
The `test_ccompile_opt` is a bit confusing, so left it right now
(this will probably fail)
|
|\
| |
| | |
DEP: Deprecate conversion of out-of-bound Python integers
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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))->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.
|
|\
| |
| | |
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>
|
| | |
|
| | |
|
| | |
|