summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-064-4/+1
| | | | | | | * 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: Remove sys.version checks (gh-#15373)Seth Troisi2020-01-281-60/+48
| | | More sys.version cleanup.
* [MAINT] Cleanup python2 sys.version checksSeth Troisi2020-01-201-2/+1
|
* Merge pull request #15248 from eric-wieser/avoid-exc_infoCharles Harris2020-01-053-17/+10
|\ | | | | MAINT: cleanup use of sys.exc_info
| * MAINT: cleanup use of sys.exc_infoEric Wieser2020-01-053-17/+10
| | | | | | | | | | | | 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`.
* | MAINT: Remove implicit inheritance from object class (#15236)Jon Dufresne2020-01-051-1/+1
| | | | | | | | | | | | | | 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.
* | MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-0317-34/+0
|/ | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* BLD: MAINT: change default behavior of build flag appending.Ralf Gommers2019-08-201-8/+4
| | | | | | 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.
* Fixing failure on Python 2.7 on Windows 7Oleksandr Pavlyk2019-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | 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.
* MAINT: Misc. typo fixes (#13664)luzpaz2019-05-311-2/+2
| | | | | | * DOC, MAINT: Misc. typo fixes Found via `codespell`
* MAINT: fix typo in 'self'Eric Wieser2019-04-111-1/+1
|
* Update environment.pyYu Feng2019-03-021-1/+2
|
* Update numpy/distutils/fcompiler/environment.pyEric Wieser2019-03-021-1/+1
| | | Co-Authored-By: rainwoodman <rainwoodman@gmail.com>
* Changes suggested by eric-wieserYu Feng2019-03-021-8/+7
|
* Convert fortran flags from environment variableYu Feng2019-03-021-2/+6
| | | This PR fixes #13074.
* 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
* BUG: Fix regression in parsing of F90 and F77 environment variablesEric Wieser2019-02-241-4/+4
| | | | | | Fixes gh-12979 Among other things, this means setting the `F90` environment variable to `"path to/f90" --coverage` works again.
* Merge pull request #12892 from eric-wieser/distutils-debugCharles Harris2019-01-315-5/+11
|\ | | | | BUG: Do not double-quote arguments passed on to the linker
| * BUG: Do not double-quote arguments passed on to the linkerEric Wieser2019-01-305-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | BUG: fix to check before apply `shlex.split`OBATA Akio2019-01-221-5/+5
| | | | | | | | | | | | | | `shlex.split` will try to read stdin if `None` is passed, so change to check before apply it. see #12823
* | Merge pull request #12631 from acastanedam/f2py_pgiCharles Harris2019-01-191-1/+5
|\ \ | | | | | | BUG: fix f2py problem to build wrappers using PGI's Fortran
| * | BUG: fix f2py problem to build wrappers using PGI's FortranArcesio Castaneda Medina2018-12-301-1/+5
| | |
* | | MAINT: add warning to numpy.distutils for LDFLAGS append behavior.Ralf Gommers2018-12-271-2/+13
|/ / | | | | | | See gh-7427
* | gfortran needs -lpthread & -maix64(64 build) in AIXAyappan P2018-11-191-0/+6
|/
* Merge pull request #11898 from tylerjereddy/rm_exec_command_2Charles Harris2018-11-141-5/+16
|\ | | | | MAINT: remove exec_command usage from ccompiler.py
| * MAINT: remove exec_command usage from ccompiler.pyTyler Reddy2018-10-311-5/+16
| | | | | | | | | | | | * replaced the usage of exec_command() in ccompiler distutils module with subprocess equivalent
* | MAINT: update gfortran RPATH for AIX/Windows non-support.Ralf Gommers2018-11-101-0/+4
|/ | | | Closes https://github.com/scipy/scipy/issues/9452
* MAINT: remove unused stdlib importsEmil Hessman2018-09-302-4/+0
|
* 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: remove exec_command from gnu.pyTyler Reddy2018-09-101-9/+22
| | | | | | * replaced usage of exec_command() with standard library equivalent in distutils gnu module
* Simplify logicIsuru Fernando2018-07-081-11/+2
|
* convert env variable flags and fix LDSHAREDIsuru Fernando2018-07-082-3/+7
|
* Move distutils.environment.py to distutils.fcompilerIsuru Fernando2018-07-072-1/+84
|
* Append *FLAGS instead of overridingIsuru Fernando2018-07-071-30/+30
|
* ENH: disutils: add the flang compilerxoviat2017-11-222-20/+102
| | | | | | 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: simplify logic from #9983Kristofor Maynard2017-11-121-8/+6
|
* Merge pull request #9977 from xoviat/squashedCharles Harris2017-11-0915-62/+32
|\ | | | | MAINT: distutils: trivial cleanups
| * MAINT: distutils: trivial cleanupsxoviat2017-11-0615-62/+32
| |
* | ENH: let f2py discover location of libgfortranKristofor Maynard2017-11-071-0/+27
|/
* ENH: Added compatability for the NAG Fortran compiler, nagforAndrew Lawson2017-10-192-10/+50
|
* BUG: adjust gfortran version search regexJonathan Helmus2017-09-201-1/+2
| | | | | | | 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
* distutils: gnu: revert :art:xoviat2017-09-021-8/+8
|
* distutils: gnu: cleanupxoviat2017-09-021-3/+0
|
* distutils: gnu: revert :art:xoviat2017-09-021-13/+11
|
* distutils: gnu: hash files + chained dllsxoviat2017-09-021-1/+1
|
* distutils: handle unlinkable object files in build_clib/build_ext, not gnuPauli Virtanen2017-09-022-65/+118
| | | | | | | | | | | | | | | | | | | | | | 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.
* distutils: gnu: patch fcompilexoviat2017-09-022-53/+157
| | | | | | | | | | 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.
* MAINT: Remove unnecessary importsSrinivas Reddy Thatiparthy2017-08-261-4/+0
| | | | - Now that `set` datastructure has been added the `builtin` module, we do not need to explicitly import from `sets` module
* BLD: remove -xhost flag from IntelFCompiler. Closes gh-9042.Ralf Gommers2017-07-271-1/+1
| | | | | Note that this was discussed extensively in gh-7287, but removing this -xhost flag was missed in the PR that closed that issue.
* BUG: Fix Intel compilation on Unix.Charles Harris2017-06-261-2/+2
| | | | | | | | | | | Fixes two problems: * c compilers do not have a find_executables method. * get_version return a LooseVersion instance, not string. Closes #9278. [ci skip]