| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* replace superfluous single-character regex character
classes with their literal string equivalents; this
avoids the overhead associated with a character class
when there's only a single character enclosed (so there's
no benefit to the class overhead)
* for more information see:
Chapter 6 of:
Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed.,
O’Reilly Media, 2009.
|
|\
| |
| | |
BUG: Fix a MacOS build failure
|
| | |
|
|/ |
|
| |
|
|\
| |
| | |
ENH: Support for the NVIDIA HPC SDK nvfortran compiler
|
| | |
|
| |
| |
| | |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
|
| | |
|
| | |
|
|\ \
| | |
| | | |
MAINT: use sysconfig not distutils.sysconfig where possible
|
| | | |
|
|/ /
| |
| |
| |
| | |
Some more Python 2 cleanup.
Also switches to use with statements, as previous passes looking for bare `open()` calls would have missed these
|
| |
| |
| | |
Delete unused _EXTRAFLAGS variable throughout file
|
| |
| |
| |
| |
| |
| | |
Fixup exception chaining and more detailed exception message
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
|
|/
|
|
| |
Issue #16481
|
|
|
|
|
|
|
|
|
| |
* ENH: Add RPATH support for AIX
* ENH: Rewrite function returning RPATH
* MAINT: Use f-strings for clarity.
Co-authored-by: Charles Harris <charlesr.harris@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
The comparison of GCC major version used a string
comparison, which is known to break when comparing
single vs. double version numbers. This fix
compares the integer of the major GCC version.
Before this fix, GCC/Gfortran 10 would get inappropriate
flag "-mno-cygwin" applied, which was removed in GCC 4
and makes GCC error out.
|
|\
| |
| | |
BUG: Flags should not contain spaces
|
| |
| |
| |
| |
| |
| | |
It's very unlikely that `ifort` is supposed to be invoked as `ifort "-fpmodel strict"` instead of `ifort -fpmodel strict` .
Spaces in flag items will end up passed as a single argument.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* 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)
|
|/
|
| |
More sys.version cleanup.
|
| |
|
|\
| |
| | |
MAINT: cleanup use of sys.exc_info
|
| |
| |
| |
| |
| |
| | |
This code originates from python 2.6, before there was an `as` clause in `except`.
This removes all callers of `numpy.distutils.compat.get_exception`.
|
| |
| |
| |
| |
| |
| |
| | |
Inheriting from object was necessary for Python 2 compatibility to use
new-style classes. In Python 3, this is unnecessary as there are no
old-style classes.
Dropping the object is more idiomatic Python.
|
|/
|
|
|
| |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
|
|
|
|
|
| |
This is a follow-up to gh-7427. This can lead to hard to understand
build failures, and we've warned that this change was coming for two
releases.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When executing pytest --pyargs numpy.distuils.tests.test_fcompiler
test_fcompiler_flags fails with
```
> raise e
E ValueError: [u'path', u'include', u'lib']
lib\site-packages\numpy\distutils\fcompiler\compaq.py:100: ValueError
---------------------------- Captured stdout call -----------------------------
Unexpected ValueError in C:\TCAgent1\work\7cc6992266387eba\distribution\lib\site
-packages\numpy\distutils\fcompiler\compaq.py
```
It appears that the list argument of ValueError contains 'path' not at the
end of the list like the current test expects, but at the beginning.
After this fix, 9 test failures of `pytest --pyargs numpy.distutils` go away.
|
|
|
|
|
|
| |
* DOC, MAINT: Misc. typo fixes
Found via `codespell`
|
| |
|
| |
|
|
|
| |
Co-Authored-By: rainwoodman <rainwoodman@gmail.com>
|
| |
|
|
|
| |
This PR fixes #13074.
|
|
|
|
|
|
| |
Not super important, but saves some lines. Only the low-hanging ones here.
Found while tracking down an unrelated ResourceWarning
|
|
|
|
|
|
| |
Fixes gh-12979
Among other things, this means setting the `F90` environment variable to `"path to/f90" --coverage` works again.
|
|\
| |
| | |
BUG: Do not double-quote arguments passed on to the linker
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
After the recent patch to CCompiler.spawn, the file-paths no longer need manual quoting - that's handled as needed within subprocess.
This also states our assumption that our paths do not contain commas.
If we care about this, we could adopt the approach used by https://github.com/rust-lang/rust/issues/38795.
Tested for gcc locally by looking at the error messages of `subprocess.check_call(["gcc", r'-Wl,spaces and no quotes'])`
Other fortran compiler changes not tested, but assumed to be broken in the same way.
Fixes #12882
|
| |
| |
| |
| |
| |
| |
| | |
`shlex.split` will try to read stdin if `None` is passed,
so change to check before apply it.
see #12823
|
|\ \
| | |
| | | |
BUG: fix f2py problem to build wrappers using PGI's Fortran
|
| | | |
|
|/ /
| |
| |
| | |
See gh-7427
|
|/ |
|
|\
| |
| | |
MAINT: remove exec_command usage from ccompiler.py
|
| |
| |
| |
| |
| |
| | |
* replaced the usage of exec_command() in
ccompiler distutils module with subprocess
equivalent
|
|/
|
|
| |
Closes https://github.com/scipy/scipy/issues/9452
|