Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | MAINT,DOC: add to compat.py3k a function to load modules. Fix some doc for ↵ | bertrand | 2016-07-17 | 1 | -10/+17 |
| | | | | f2py.compile (issue #7683) | ||||
* | MAINT: Change `call_fortran` into `callfortran` in comments. | Dongjoon Hyun | 2016-01-29 | 1 | -1/+1 |
| | | | | It was committed mistakenly in #7134. `callfortran` is used a lot really. | ||||
* | MAINT: Fix some typos in a code string and comments | Dongjoon Hyun | 2016-01-27 | 3 | -6/+6 |
| | |||||
* | MAINT, STY: Removed unused variable in f2py/f90mod_rules.py | rehassachdeva | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Merge pull request #6886 from charris/use-temppath | Charles Harris | 2016-01-02 | 1 | -20/+12 |
|\ | | | | | MAINT: Simplify some tests using temppath context manager. | ||||
| * | MAINT: Simplify some tests using temppath context manager. | Charles Harris | 2015-12-26 | 1 | -20/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces code of the pattern ``` fd, name = tempfile.mkstemp(...) os.close(fd) try: do stuff with name finally: os.remove(name) ``` with ``` with temppath() as name: do stuff with name ``` A few more complicated cases are also handled. The remains some particularly gnarly code the could probably be refactored to use temppath, but that is a more demanding project. | ||||
* | | [TST] Refactor new raise_warnings logic for subpackage test suites | Nathaniel J. Smith | 2015-12-30 | 1 | -3/+3 |
|/ | |||||
* | MAINT: Remove commented out code blocks | gfyoung | 2015-12-20 | 1 | -4/+0 |
| | |||||
* | DOC: Use print only as function when print_function is imported from __future__ | gfyoung | 2015-12-19 | 1 | -1/+1 |
| | | | | Closes gh-6863. | ||||
* | DOC: Some documentation fixups. | Charles Harris | 2015-12-17 | 1 | -0/+2 |
| | | | | | Add '.. versionadded:: 1.11.0' to the new `extension` parameter in f2py.compile and document it in the 1.11.0 release notes. | ||||
* | BUG,ENH: Add extension parameter to f2py.compile and fix verbose. | Alex Rogozhnikov | 2015-12-17 | 1 | -9/+25 |
| | | | | | 1. Verbose parameter was ignored earlier. 2. Allowed .f90 extensions for tempfiles | ||||
* | MAINT: Include from __future__ boilerplate in some files missing it. | Charles Harris | 2015-12-05 | 1 | -0/+2 |
| | | | | | Some newer *.py files are missing the `from __future__` boilerplate that helps assure Python2 and Python3 compatibility. | ||||
* | ENH: testing: add SkipTest and KnownFailureException | Evgeni Burovski | 2015-11-16 | 2 | -9/+6 |
| | | | | | | | | * use SkipTest in numpy tests instead of importing it from nose * add a KnownFailureException as an alias for KnownFailureTest (the former is preferred, but the latter is kept for backcompat) * rename the KnownFailure nose plugin into KnownFailurePlugin, and keep the old name for backcompat | ||||
* | MAINT: Dictionary litteral | Rémy Léone | 2015-11-07 | 1 | -4/+2 |
| | |||||
* | BUG: Revert some import * fixes in f2py. | Charles Harris | 2015-10-26 | 3 | -22/+15 |
| | | | | | | | | | | | | | | | | The files * capi_maps.py * crackfortran.py * f90mod_rules.py previously used `from .auxfuncs import *` and also called `eval` without an explicit enviroment. An attempt to use explicit imports led to errors, and because static code analysis in not sufficient to determine what functions need to be imported, it is safest to continue using `import *` pending a major refactoring of f2py. Closes #6563. | ||||
* | Merge pull request #6488 from charris/cleanup-6306 | Charles Harris | 2015-10-16 | 1 | -5/+2 |
|\ | | | | | Cleanup 6306: BUG: allow extension of common blocks in numpy.f2py | ||||
| * | BUG: allow extension of common blocks in numpy.f2py | Alexander Heger | 2015-10-16 | 1 | -5/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lack of this feature resulted in the generation of incorrect *.pyf files. For example, the pyf file created by: subroutine sub3 (some arguments) real a, b, c, d common /coeff/ a, b common /coeff/ c, d <do stuff> return end Should contain both common statements the declaration of all four variables a, b, c, and d. Closes #5876. | ||||
* | | BUG: Allow nested use of parameters for array dimensions in f2py. | Alexander Heger | 2015-10-16 | 1 | -3/+4 |
|/ | | | | | | | | | | | | | Nested use of parameters in specifying dimensions caused problems. For example parameter (i=7) common buf(nvar*(nvar+1) * (n + 1)) This fix was suggested by Pearu on github. Closes #5877. | ||||
* | STY: Break some long lines in numpy/f2py/*.py. | Charles Harris | 2015-07-29 | 8 | -122/+50 |
| | | | | | | | The fixes are generated by autopep8, which uses line continuation. There are 441 cases that it is unable to handle, involving strings, and that is more, and more delicate, work than I want to do at this time. The line continuation characters at least mark some of the long lines. | ||||
* | STY: PEP8 fixes in numpy/f2py/tests. | Charles Harris | 2015-07-25 | 6 | -24/+46 |
| | |||||
* | STY: Make PEP8 fixes in numpy/f2py | Charles Harris | 2015-07-25 | 15 | -3233/+4047 |
| | | | | | Decided to bite the bullet on this one. The code is certainly more readable, so should be easier to fix if we need to. | ||||
* | STY: Make pyflakes fixes in numpy/f2py | Charles Harris | 2015-07-25 | 12 | -273/+405 |
| | |||||
* | STY: PEP8 and pyflakes fixes for numpy/f2py/tests. | Charles Harris | 2015-07-25 | 11 | -258/+298 |
| | |||||
* | BUG: revert use of !python for bdist_mpkg scripts | Matthew Brett | 2015-05-05 | 1 | -1/+1 |
| | | | | | | bdist_mpkg is a very crude install method that will assume the path to Python, so we should not use the `#!python` form when installing scripts in bdist_mpkg. | ||||
* | ENH: add bdist_mpkg, bdist_wininst to binary dists | Matthew Brett | 2015-04-29 | 1 | -2/+3 |
| | | | | | Add other binary distribution formats to list of build commands that should generate !python shebang lines. | ||||
* | BUG: fix f2py shebang line for bdist wheel, egg | Matthew Brett | 2015-04-29 | 1 | -1/+14 |
| | | | | | | | | | 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. | ||||
* | MANT: Use Py_RETURN_NONE whenever Py_None is returned | Jaime Fernandez | 2015-04-24 | 1 | -2/+1 |
| | |||||
* | Merge pull request #5565 from juliantaylor/pep338-f2py | Julian Taylor | 2015-03-09 | 2 | -26/+27 |
|\ | | | | | ENH: make f2py an executable module | ||||
| * | ENH: make f2py an executable module | Julian Taylor | 2015-03-08 | 2 | -26/+27 |
| | | | | | | | | allows pep 338 execution via python -mnumpy.f2py | ||||
* | | BUG: Cannot read .f2py_f2cmaps under python 3.3 | David Powell | 2015-03-06 | 1 | -4/+4 |
|/ | | | | | | | 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. | ||||
* | Merge pull request #5309 from rgommers/remove-f2py-deprecation | Charles Harris | 2015-01-06 | 2 | -5/+0 |
|\ | | | | | MAINT: remove NPY_NO_DEPRECATED_API define from f2py. | ||||
| * | MAINT: remove NPY_NO_DEPRECATED_API define from f2py. | Ralf Gommers | 2014-11-23 | 2 | -5/+0 |
| | | | | | | | | | | See gh-5281 for discussion. With the defines in, compiling scipy 0.14.0 and below isn't possible. | ||||
* | | Merge pull request #5287 from chatcannon/reconcile-c-api-with-docs | Julian Taylor | 2014-12-10 | 1 | -7/+10 |
|\ \ | |/ |/| | | | Reconcile C API with docs | ||||
| * | MAINT: cast PyArray_ITEMSIZE result to avoid warnings | Julian Taylor | 2014-12-10 | 1 | -3/+3 |
| | | | | | | | | return type depends on API version used | ||||
| * | MAINT: Update printf statements in fortranobject.c | Chris Kerr | 2014-12-10 | 1 | -5/+8 |
| | | | | | | | | Using NPY_INTP_FMT to format PyArray_ITEMSIZE | ||||
* | | MAINT: change place where NPY_NO_DEPRECATED_API is defined in f2py. | Ralf Gommers | 2014-11-16 | 3 | -2/+6 |
|/ | | | | | 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. | ||||
* | DEP: #declaring NPY_NO_DEPRECATED_API in fortranobject.h | Chris Kerr | 2014-11-10 | 1 | -0/+2 |
| | |||||
* | DEP: removed deprecated API calls from test code (wrapmodule.c) | Chris Kerr | 2014-11-10 | 1 | -31/+31 |
| | |||||
* | DEP: Replace NPY_CONTIGUOUS with NPY_ARRAY_C_CONTIGUOUS | Chris Kerr | 2014-11-10 | 2 | -2/+2 |
| | |||||
* | DEP: Corrected some type errors that appear when enabling NPY_NO_DEPRECATED_API | Chris Kerr | 2014-11-10 | 1 | -7/+7 |
| | |||||
* | DEP: Replaced NPY_[F,C]ARRAY with NPY_ARRAY_[F,C]ARRAY | Chris Kerr | 2014-11-10 | 2 | -6/+6 |
| | |||||
* | DEP: Using the internal PyArrayObject_fields API for the swap_arrays and ↵ | Chris Kerr | 2014-11-10 | 1 | -2/+5 |
| | | | | dump_attrs functions | ||||
* | DEP: Using PyArray_SIZE and PyArray_TYPE instead of PyArray_DESCR()->elsize etc | Chris Kerr | 2014-11-10 | 1 | -5/+5 |
| | |||||
* | DEP: Replaced arr->descr, arr->flags and arr->base with the PyArray_* functions | Chris Kerr | 2014-11-10 | 4 | -20/+20 |
| | |||||
* | DEP: replaced arr->dimensions with PyArray_DIMS(arr) or PyArray_DIM(arr,i) | Chris Kerr | 2014-11-10 | 3 | -15/+15 |
| | |||||
* | DEP: replaced arr->data with PyArray_DATA | Chris Kerr | 2014-11-10 | 4 | -52/+52 |
| | |||||
* | DEP: replaced arr->nd with PyArray_NDIM in C code generation scripts | Chris Kerr | 2014-11-10 | 2 | -7/+7 |
| | |||||
* | DEP: Replaced arr->nd with PyArray_NDIM in fortranobject.c | Chris Kerr | 2014-11-10 | 1 | -18/+18 |
| | |||||
* | MAINT: remove obsolete version checks | Julian Taylor | 2014-10-15 | 1 | -17/+15 |
| | | | | | minimum requirement is python2.6, this allows removing a couple 2.3 and 2.4 checks. | ||||
* | Merge pull request #5168 from charris/f2py-space-fix | Charles Harris | 2014-10-10 | 3 | -4/+47 |
|\ | | | | | BUG: Make f2py work with intent(in out). |