summaryrefslogtreecommitdiff
path: root/numpy/f2py/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: change subprocess arguments from Python>=3.7Mike Taves2022-10-271-2/+1
|
* MAINT: Python <3.7 related cleanupsBrigitta Sipőcz2022-05-231-18/+13
|
* MAINT: Kill unused fileRohit Goswami2022-05-051-11/+3
| | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* DOC: Refactoring f2py user guidemelissawm2022-01-051-12/+12
|
* DOC: correct the versionadded number for `f2py.get_include`Ralf Gommers2021-11-191-1/+1
| | | | | | This feature was backported to 1.21.1 in gh-19348 [ci skip]
* MAINT: Fix build issuesRohit Goswami2021-11-151-1/+1
|
* MAINT,DOC: Refactor, syntax highlighting for f2pyRohit Goswami2021-09-191-2/+2
|
* MAINT: Remove `f2py_testing` from `__all__`Bas van Beek2021-06-271-1/+1
| | | | It's not a public module.
* ENH: add `numpy.f2py.get_include` functionRalf Gommers2021-06-191-1/+48
| | | | | This is useful for similar reasons as `numpy.get_include`, see https://github.com/numpy/numpy/issues/14960#issuecomment-846460159
* Merge pull request #16205 from embray/issue/12756Charles Harris2020-11-231-14/+23
|\ | | | | ENH: Add ``full_output`` argument to ``f2py.compile``.
| * defaults for stdout and stderr should be bytesE. Madison Bray2020-05-131-3/+4
| | | | | | | | only print stdout if no OSError exception was raised
| * ENH: add full_output to f2py.compileE. Madison Bray2020-05-111-14/+22
| | | | | | | | | | fixes #12756 by providing a straightforward way to return the stdout/stderr from compiling the FORTRAN module to the caller
* | BLD: Lazy load f2py test utilitiesDustin Spicuzza2020-11-121-4/+30
|/ | | | | | | These are only used during testing. It's fine to load it while running the test because actually running the test can't be done while cross compiling. Part of changes to support #17620 to prevent importing numpy during builds to support cross-compilation
* convert shebang from python to python3 (#15687)Changqing Li2020-03-041-1/+1
| | | | Signed-off-by: Changqing Li <changqing.li@windriver.com>
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-061-2/+0
| | | | | | | * Cleanup unused imports (F401) of mostly standard Python modules, or some internal but unlikely referenced modules * Where internal imports are potentially used, mark with noqa * Avoid redefinition of imports (F811)
* MAINT: Replace basestring with str.Charles Harris2020-01-231-1/+1
| | | | | | | This replaces basestring with str except in - tools/npy_tempita/ - numpy/compat/py3k.py
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* MAINT: Avoid all BytesWarningJon Dufresne2019-09-251-0/+1
| | | | | | | | A BytesWarning can be emitted when bytes are and strings are mismatched. Catching BytesWarning ensures a better boundary between str and bytes type. The test suite is now run with the -b flag to emit this warning. Fixes #9308
* BUG, DOC: test, fix that f2py.compile accepts str and bytes, rework docsmattip2019-01-201-3/+19
|
* MAINT: remove exec_command() from f2py initTyler Reddy2018-09-181-11/+42
| | | | | * replaced the usage of exec_command() in the f2py init with standard library equivalent
* MAINT: Move pytesttester outside of np.testing, to avoid creating ↵Eric Wieser2018-07-021-1/+1
| | | | | | | | unnecessary import dependencies pytesttester is used by every single subpackage, so making it depend on np.testing just creates cyclic dependencies that can lead to circular imports Relates to #11457
* TST: Update modules `test` to PytestTester.Charles Harris2018-04-041-2/+3
| | | | | | | | Numpy can now be tested using the standard `python -c"import numpy; numpy.test()"` construct.
* MAINT: Remove "bench" from testing modules `__init__`s.Charles Harris2018-03-311-1/+0
| | | | | The "bench" testing with the old bench files is no longer supported. These days we use `runtests.py` and `asv`.
* MAINT: Rearrange files in numpy/testing module.Charles Harris2017-07-041-1/+1
| | | | | | | | | | | | | | | | | The aim here is to separate out the nose dependent files prior to adding pytest support. This could be done by adding new files to the general numpy/testing directory, but I felt that it was to have the relevant files separated out as it makes it easier to completely remove nose dependencies when needed. Many places were accessing submodules in numpy/testing directly, and in some cases incorrectly. That presented a backwards compatibility problem. The solution adapted here is to have "dummy" files whose contents will depend on whether of not pytest is active. That way the module looks the same as before from the outside. In the case of numpy itself, direct accesses have been fixed. Having proper `__all__` lists in the submodules helped in that.
* MAINT,DOC: add to compat.py3k a function to load modules. Fix some doc for ↵bertrand2016-07-171-10/+17
| | | | f2py.compile (issue #7683)
* [TST] Refactor new raise_warnings logic for subpackage test suitesNathaniel J. Smith2015-12-301-3/+3
|
* DOC: Some documentation fixups.Charles Harris2015-12-171-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 Rogozhnikov2015-12-171-9/+25
| | | | | 1. Verbose parameter was ignored earlier. 2. Allowed .f90 extensions for tempfiles
* STY: Make PEP8 fixes in numpy/f2pyCharles Harris2015-07-251-6/+7
| | | | | 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/f2pyCharles Harris2015-07-251-4/+3
|
* ENH: remove insecure mktemp useJulian Taylor2014-02-061-13/+13
| | | | | mktemp only returns a filename, a malicous user could replace it before it gets used.
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-5/+5
| | | | | | | Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long and will need to be broken at some point. OTOH, some lines were already too long and need to be broken at some point. Now seems as good a time as any to do this with open PRs at a minimum.
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Apply `imports` fixer.Charles Harris2013-04-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The `imports` fixer deals with the standard packages that have been renamed, removed, or methods that have moved. cPickle -- removed, use pickle commands -- removed, getoutput, getstatusoutput moved to subprocess urlparse -- removed, urlparse moved to urllib.parse cStringIO -- removed, use StringIO or io.StringIO copy_reg -- renamed copyreg _winreg -- renamed winreg ConfigParser -- renamed configparser __builtin__ -- renamed builtins In the case of `cPickle`, it is imported as `pickle` when python < 3 and performance may be a consideration, but otherwise plain old `pickle` is used. Dealing with `StringIO` is a bit tricky. There is an `io.StringIO` function in the `io` module, available since Python 2.6, but it expects unicode whereas `StringIO.StringIO` expects ascii. The Python 3 equivalent is then `io.BytesIO`. What I have done here is used BytesIO for anything that is emulating a file for testing purposes. That is more explicit than using a redefined StringIO as was done before we dropped support for Python 2.4 and 2.5. Closes #3180.
* 2to3: Use absolute imports.Charles Harris2013-03-281-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+1
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* TST: mark slow f2py tests + add f2py test function.David Cournapeau2010-03-311-0/+4
|
* ENH: Add diagnose to f2py package. This makes the tests a bit easier to fix.Charles Harris2010-02-251-2/+4
|
* Reorg. code so that numpy.distutils could be used from cwd that contains ↵Pearu Peterson2006-04-011-1/+1
| | | | math.py.
* Making f2py and distutils scipy-style packages. Using pkgload to load numpy ↵Pearu Peterson2006-01-141-0/+2
| | | | packages.
* Changed all references to scipy to numpyTravis Oliphant2006-01-041-2/+2
|
* Moved scipy directory to numpyTravis Oliphant2006-01-041-0/+40