summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/ibm.py
Commit message (Collapse)AuthorAgeFilesLines
* 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: Use with statements for opening files in distutilsEric Wieser2019-03-011-9/+8
| | | | | | Not super important, but saves some lines. Only the low-hanging ones here. Found while tracking down an unrelated ResourceWarning
* MAINT: remove exec_command usage in ibm.py (#11901)Tyler Reddy2018-09-151-4/+9
| | | | Replaced the usage of exec_command() in distutils ibm module with subprocess.check_output
* MAINT: distutils: trivial cleanupsxoviat2017-11-061-3/+2
|
* DEP: Fix escaped string characters deprecated in Python 3.6.Charles Harris2016-12-141-1/+1
| | | | | | | In Python 3.6 a number of escape sequences that were previously accepted -- for instance "\(" that was translated to "\\(" -- are deprecated. To retain the previous behavior either raw strings must be used or the backslash must be properly escaped itself.
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-4/+4
| | | | | | | 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.
* MAINT: Apply 2to3 idioms fixer.Charles Harris2013-05-021-2/+1
| | | | | | | | | | | | | | | | | | | The idioms fixer makes the following replacements. 1) int <- bool 2) comparison or identity of types <- isinstance 3) a.sort() <- sorted(a) There were two problems that needed to be dealt with after the application of the fixer. First, the replacement of comparison or identity of types by isinstance was not always correct. The isinstance function returns true for subtypes whereas many of the places where the fixer made a substitution needed to check for exact type equality. Second, the sorted function was applied to arrays, but because it treats them as iterators and constructs a sorted list from the result, that is the wrong thing to do. Closes #3062.
* 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: Use absolute imports.Charles Harris2013-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Remove xreadlines and replace f.readlines() by f where valid.Charles Harris2013-03-051-1/+1
| | | | | | | | | | An open file `f` has been an iterator since python2.3 and `f.xreadlines()` is no longer needed, so replace it with `f`. Also replace `f.readlines()` with `f` where an iterator will do. The replacement of `f.readlines()` is not critical because it is a list in both python2 and python3, but the code is a bit cleaner. Closes #3093
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+2
| | | | | | | | 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.
* MAINT: update version match regexp for IBM AIX Fortran compilers.Carlos Valiente2011-12-051-1/+1
| | | | | | | | | | | The patched version correctly matches the output of ``xlf -qversion`` on my AIX platform: $ uname -a AIX c1t0101 3 5 00CF49B14C00 $ xlf -qversion IBM XL Fortran for AIX, V12.1 Version: 12.01.0000.0000 $
* BUG: distutils: change compile flag on AIX from -O5 to -O3. See #1261.Ralf Gommers2011-03-251-1/+1
|
* Fix print statements in fcompiler for python3.David Cournapeau2009-12-031-1/+1
|
* Better temporary file handling by using one temporary directory forcookedm2007-05-281-3/+2
| | | | numpy.distutils, and removing that at exit. Replaces using tempfile.mktemp.
* distutils: clean up imports (found by running pyflakes)cookedm2007-05-251-5/+1
|
* merge from distutils-revamp branch (step 2)cookedm2007-05-251-2/+5
| | | | | | - fcompiler changes. All flags, executables, etc., should be overridable by the user with config_fc (either command line or setup.cfg) or by environment variables
* Really fix linking with Fortran on AIXcookedm2007-04-041-9/+0
|
* Fix for making Fortran extensions on AIX.cookedm2007-04-041-0/+10
|
* Applying info from Hans-Joachim Ehlers to improve xlf compiler support (on ↵Pearu Peterson2007-03-021-10/+10
| | | | AIX using lslpp to determine compiler version).
* Fixing xlf compiler for AIX with 9.x and 10.x version support (needs testing ↵Pearu Peterson2007-02-281-8/+13
| | | | and checking that xlf 8.x compilers are still detected)
* Added support for xml Fortran V10 compiler (needs testing).Pearu Peterson2007-02-281-2/+12
|
* Actually return the appropriate version if found.Robert Kern2006-04-161-1/+1
|
* Making f2py and distutils scipy-style packages. Using pkgload to load numpy ↵Pearu Peterson2006-01-141-1/+2
| | | | packages.
* Changed all references to scipy to numpyTravis Oliphant2006-01-041-2/+2
|
* Moved scipy directory to numpyTravis Oliphant2006-01-041-0/+80