| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
Add other binary distribution formats to list of build commands that
should generate !python shebang lines.
|
|
|
|
|
|
|
|
|
| |
Command `bdist_wheel` was generating a shebang line for f2py that uses
the Python path for the building Python. If we are building a wheel or
an egg, use the generic `#!python` shebang line for the f2py script
instead, which setuptools will modify at install time.
Closes gh-5812.
|
| |
|
|\
| |
| | |
ENH: make f2py an executable module
|
| |
| |
| |
| | |
allows pep 338 execution via python -mnumpy.f2py
|
|/
|
|
|
|
|
| |
When reading .f2py_f2cmaps, these is iteration over dictionaries keys()
and items(), which are iterators in python 3. This prohibits modifying the
dicionaries while iterating. By wrapping these calls with list(), the python 2
behaviour is restored. Fixes #5637.
|
|\
| |
| | |
MAINT: remove NPY_NO_DEPRECATED_API define from f2py.
|
| |
| |
| |
| |
| | |
See gh-5281 for discussion. With the defines in, compiling scipy 0.14.0 and
below isn't possible.
|
|\ \
| |/
|/|
| | |
Reconcile C API with docs
|
| |
| |
| |
| | |
return type depends on API version used
|
| |
| |
| |
| | |
Using NPY_INTP_FMT to format PyArray_ITEMSIZE
|
|/
|
|
|
| |
This makes sure to undef at the end, and by putting the define in the
C code it ensures that the error message is understandable.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
dump_attrs functions
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
minimum requirement is python2.6, this allows removing a couple 2.3 and
2.4 checks.
|
|\
| |
| | |
BUG: Make f2py work with intent(in out).
|
| |
| |
| |
| |
| | |
This checks that the compilation works and that the expected error
is raised when non-contiguous arrays are passed as intent(in out).
|
| |
| |
| |
| |
| |
| |
| | |
Note that Fortran ignores spaces in this case, so that 'in out' is
treated as 'inout'.
Closes #479.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Should not use sprintf, and certainly not with incorrect error checking
(gh-5044). Entirely rewritten for readability.
Also replaced a few sprintf calls that were just copying strings without
interpretation by the simpler and possibly faster strcpy/strcat.
(These need to be replaced by something more sensible.)
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
turns out not only sparc is borked, skip the checks on all 32 bit arches
with too large clongdouble alignments until we have an aligned
allocator.
|
|\ \
| | |
| | | |
MAINT: Remove references to missing files from install.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The following directories and files have been moved or deleted
numpy/lib/benchmarks
numpy/f2py/docs
numpy/f2py/f2py.1
This PR removes references to them from the relevant setup.py files.
Closes #5010.
|
| |
| |
| |
| |
| | |
mingw builds set the alignment requirement for complex doubles types to
16 byte so the tests checking the alignment flag must be disabled.
|
|/
|
|
|
|
|
| |
(debian) sparc system malloc does not provide the alignment required by 16 byte
long double types this means the inout intent cannot be satisfied and several
tests fail as the alignment flag can be randomly true or fals when numpy gains
an aligned allocator the tests could be enabled again.
|
|\
| |
| | |
BUG: #2408, Fix f2py Python 3 error message string bug.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The original was generating an exception message and, after aliasing,
calling PyBytes_AsString on a unicode string -> error. It was also
leaking references, although that probably didn't matter in context.
The fix here is on the cheap side, just use a C string for the message
without including the extra information about the erroneous type that
led to the exception.
No test, I don't know how to evoke this error.
Closes #2408.
|
|\ \
| | |
| | | |
BUG: #4256: f2py, PyString_FromStringAndSize is undefined in Python3.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
Use PyUString_FromStringAndSize defined in npy_3kcompat instead. Not
using bytes may cause some problems, but strings seem like a better
choice. As modules generated with current f2py error out, this
particular use is not common and we are free to choose.
Closes #4256.
|
|/
|
|
|
|
|
| |
Replace "insinged_long_long" by "unsigned_long_long". Patch due to trac
user pepijndevos.
Closes #636.
|
|\
| |
| | |
ENH: add tobytes and stop using tostring in documentation
|
| |
| |
| |
| |
| |
| |
| | |
tostring returns bytes which are not equal to string, so provide a
tobytes function alias.
tostring does not emit a deprecation warning yet so rdepends do not need
to check two names to support older versions of numpy without warnings.
|
|/
|
|
|
| |
mktemp only returns a filename, a malicous user could replace it before
it gets used.
|
| |
|
|\
| |
| | |
MAINT: remove use of ``reload`` from f2py. See gh-4139.
|
| | |
|
| | |
|
|/ |
|
| |
|