| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
| |
Replaced the usage of exec_command() in distutils ibm module with subprocess.check_output
|
|
|
|
|
|
| |
* replaced usage of exec_command() with
standard library equivalent in distutils
gnu module
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Flang is the first CRT-compatbile compiler for windows.
It's added for Python versions with a compatible ABI.
Future work may include adding it for other platforms.
|
| |
|
|\
| |
| | |
MAINT: distutils: trivial cleanups
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
| |
Adjust the gfortran regex to require a '.' to be present in the version number.
This avoids matching a hash or text containing a '-' such as the version string
from the compilers produced by crosstool-NG. For example:
GNU Fortran (crosstool-NG 8a21ab48) 7.2.0
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add concept of unlinkable Fortran object files on the level of
build_clib/build_ext.
Make build_clib generate fake static libs when unlinkable object files are
present, postponing the actual linkage to build_ext.
This enables MSVC+gfortran DLL chaining to only involve those DLLs that
are actually necessary for each .pyd file, rather than linking everything
in to every file. Linking everything to everywhere has issues due to
potential symbol clashes and the fact that library build order is
unspecified.
Record shared_libs on disk instead of in system_info. This is necessary
for partial builds -- it is not guaranteed the compiler is actually called
for all of the DLL files.
Remove magic from openblas msvc detection. That this worked previously
relied on the side effect that the generated openblas DLL would be added
to shared_libs, and then being linked to all generated outputs.
|
|
|
|
|
|
|
|
|
|
| |
This allows mingw's gfortran to work with MSVC. DLLs are
autogenerated using heuristics that should work with most
cases. In addition, a libopenblas DLL is compiled from
the static lib for use with MSVC.
All generated DLLs have randomized names so that no clashes
will occur.
|
|
|
|
| |
- Now that `set` datastructure has been added the `builtin` module, we do not need to explicitly import from `sets` module
|
|
|
|
|
| |
Note that this was discussed extensively in gh-7287, but removing
this -xhost flag was missed in the PR that closed that issue.
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes two problems:
* c compilers do not have a find_executables method.
* get_version return a LooseVersion instance, not string.
Closes #9278.
[ci skip]
|