summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/gnu.py
Commit message (Collapse)AuthorAgeFilesLines
* DEV: supporting IBM i systemGavinZhang2022-08-141-2/+2
|
* BUG: Use `Popen` to silently invoke f77 -vMichael Osthege2022-07-091-1/+7
| | | | | | The output analyzed by this function unexpectedly ended up in stderr. Closes #21942
* Extending CPU feature detection framework to support IBM Z SIMDPradipta Ghosh2021-12-141-1/+1
| | | | | | | | | | We would like to extend CPU feature detection infrastructure for IBM Z CPU features. Eventually It will help to add and enable Z specific SIMD builtins and instructions. As part of the PR, we have extended ccompiler_opt.py, npy_cpu_features.c.src, npy_cpu_features.h, other files for Z CPU feature detection and added test files for VX/VXE/VXE2 in distutils/checks.
* MAINT: Fix LGTM.com warningDimitri Papadopoulos2021-09-241-1/+0
| | | | | Unreachable code Unreachable statement.
* DOC: Typos found by codespellDimitri Papadopoulos2021-09-211-1/+1
|
* BLD: Tell fortran compiler Cygwin doesn't support rpath.DWesl2021-07-211-1/+1
| | | | Cygwin inherits Windows's lack of RPATH.
* Strip extra newline when dumping gfortran version on MacOSKamil Choudhury2021-03-301-1/+2
|
* Update gnu.pyFX Coudert2020-12-031-1/+1
|
* MAINT: use sysconfig not distutils.sysconfig where possiblemattip2020-09-021-1/+1
|
* MAINT: Remove _EXTRAFLAGS variable (#17050)jakobjakobson132020-08-121-10/+3
| | | Delete unused _EXTRAFLAGS variable throughout file
* BLD, ENH: Add RPATH support for AIX (#16710)EGuesnet2020-07-071-4/+9
| | | | | | | | | * 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>
* BUG: gcc >= 10: correctly compare major versionMichael Hirsch2020-06-021-1/+2
| | | | | | | | | | | 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.
* ENH: update default MACOSX_DEPLOYMENT_TARGET to 10.9 (from review)mattip2020-04-081-4/+3
|
* ENH: use sysconfig instead of probing Makefilemattip2020-04-071-16/+8
|
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-061-1/+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] Cleanup python2 sys.version checksSeth Troisi2020-01-201-2/+1
|
* Merge pull request #15248 from eric-wieser/avoid-exc_infoCharles Harris2020-01-051-3/+2
|\ | | | | MAINT: cleanup use of sys.exc_info
| * MAINT: cleanup use of sys.exc_infoEric Wieser2020-01-051-3/+2
| | | | | | | | | | | | 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 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.
* Merge pull request #12892 from eric-wieser/distutils-debugCharles Harris2019-01-311-1/+4
|\ | | | | BUG: Do not double-quote arguments passed on to the linker
| * BUG: Do not double-quote arguments passed on to the linkerEric Wieser2019-01-301-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | gfortran needs -lpthread & -maix64(64 build) in AIXAyappan P2018-11-191-0/+6
|/
* 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-301-1/+0
|
* 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
* MAINT: simplify logic from #9983Kristofor Maynard2017-11-121-8/+6
|
* Merge pull request #9977 from xoviat/squashedCharles Harris2017-11-091-9/+4
|\ | | | | MAINT: distutils: trivial cleanups
| * MAINT: distutils: trivial cleanupsxoviat2017-11-061-9/+4
| |
* | ENH: let f2py discover location of libgfortranKristofor Maynard2017-11-071-0/+27
|/
* 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-021-65/+86
| | | | | | | | | | | | | | | | | | | | | | 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-021-53/+156
| | | | | | | | | | 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.
* 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.
* BUG: distutils: fix issue with rpath in fcompiler/gnu.pyRalf Gommers2016-10-021-1/+3
| | | | | | ``-Wl,rpath=`` is Linux-specific, OS X needs a comma. This addresses gh-6486, which was already closed but not actually addressed.
* BUG: Fix fid.close() to use os.close(fid)Sebastian Berg2016-09-041-1/+1
| | | | | | | The error snuk in with some other file closing fixes and found by Warren Weckesser. Closes gh-8013
* ENH: Add stacklevel to all (or almost all) our function callsSebastian Berg2016-09-021-1/+1
|
* MAINT: Close some filehandlers and PIPEs after being doneSebastian Berg2016-09-021-0/+1
| | | | | The PIPE in the tests caused a ResourceWarning during testing in python 3.
* ENH: Support for python runtime with no Makefile, like PyPymattip2016-07-181-2/+7
|
* BUG: Fixed mingw.lib errorgfyoung2016-01-251-1/+1
| | | | Closes gh-647.
* Revert "Merge pull request #5614 from charris/cleanup-gh-5587"Charles Harris2015-10-201-22/+10
| | | | | | | | | Revert mingwpy modifications to distutils. They are causing problems for non-windows builds and it is better to wait until mingypy is further along. This reverts commit 96abd32de241864ee97f30357234cbc9a96c43ae, reversing changes made to 06af9918f6bf03b8d818ec834f9fb48db57d1489.
* Revert "Merge pull request #6354 from mingwpy/mingwpy"Charles Harris2015-10-201-7/+6
| | | | | | | | | Revert mingwpy modifications to distutils. They are causing problems for non-windows builds and it is better to wait until mingypy is further along. This reverts commit cda64938eb150b1af6677db4754da3be5fd7e483, reversing changes made to 8cb3ec6ab804f594daf553e53e7cf7478656bebd.
* BLD: mingwpy fixescarlkl2015-09-241-6/+7
|
* BUG: fix typo which fused two compile flags on Windows for GFortran.Ralf Gommers2015-08-201-1/+1
| | | | Reported in gh-6095.
* BLD: distutils: more robust gfortran version checking. Closes gh-5768.Ralf Gommers2015-04-191-14/+33
|
* Merge pull request #5644 from rgommers/fix-gfortran-version-checkCharles Harris2015-03-081-0/+4
|\ | | | | BLD: fix gfortran version check, and make distutils.test() work
| * MAINT: distutils: fix gfortran version check when gfortran emits warnings.Ralf Gommers2015-03-071-0/+4
| |