summaryrefslogtreecommitdiff
path: root/numpy/distutils/system_info.py
Commit message (Collapse)AuthorAgeFilesLines
* BUG: KeyboardInterrupt is swallowed all over the placeEric Wieser2017-06-031-1/+1
| | | | Bare except is very rarely the right thing
* BUG: blas_info should record include_dirsBenda Xu2017-02-151-0/+2
| | | | | blas specified in site.cfg could have non-standard include dirs. It should be read and saved in distutils/__config__.py
* BUG: do not link to Accelerate if OpenBLAS, MKL or BLIS are found.Ralf Gommers2016-11-241-2/+4
| | | | Closes gh-8293.
* MAINT: change path to env in distutils.system_info. Closes gh-8195.Ralf Gommers2016-10-221-7/+5
| | | | Also clean up some unused variables.
* ENH: Add stacklevel to all (or almost all) our function callsSebastian Berg2016-09-021-13/+13
|
* MAINT: Close some filehandlers and PIPEs after being doneSebastian Berg2016-09-021-5/+6
| | | | | The PIPE in the tests caused a ResourceWarning during testing in python 3.
* Fixed MKL detection for recent versions of this library.Xavier Abellan Ecija2016-08-051-19/+3
|
* BLD: preserve library orderMike Nolta2016-06-251-45/+35
| | | | | | Before, the list of libraries was resorted to match the order of library_dirs. Now, the opposite occurs: library_dirs is resorted to match the library order.
* Change mkl_info.dir_env_var from MKL to MKLROOTRay Donnelly2016-06-101-1/+1
| | | | Reference: https://software.intel.com/en-us/node/528500
* BLD: correct C compiler customization in system_info.py Closes gh-7606.Ralf Gommers2016-05-141-3/+5
|
* BLD: fix configparser.InterpolationSyntaxErrorSorin Sbarnea2016-04-281-2/+8
| | | | Closes #7572 inability to install in virtualenvs with percent in their path.
* Merge pull request #7294 from rgommers/blis-supportNathaniel J. Smith2016-03-011-14/+55
|\ | | | | ENH: add support for BLIS to numpy.distutils
| * ENH: add support for BLIS to numpy.distutilsRalf Gommers2016-02-201-14/+55
| |
* | DOC: Fix more typos in docs and comments.Dongjoon Hyun2016-02-251-1/+1
| |
* | Merge pull request #7232 from rmalouf/mklRalf Gommers2016-02-221-5/+5
|\ \ | |/ |/| BLD: Switch order of test for lapack_mkl and openblas_lapack
| * BLD: Switch order of test for lapack_mkl and openblas_lapackRob Malouf2016-02-111-5/+5
| |
* | ENH: Allow site.cfg information with libraries keyNick Papior2016-01-171-1/+4
| | | | | | | | | | | | | | | | | | | | This PR fixes the case when users create a site.cfg to fix library locations, but does not change the library names. Now numpy.distutils correctly checks all options related to libraries by defaulting to the library from the class via _lib_names Signed-off-by: Nick Papior <nickpapior@gmail.com>
* | BUG: skip invalid path distutils warning for empty stringsJulian Taylor2016-01-131-1/+1
| | | | | | | | | | empty strings are the default for the new rpath, extra_compile_args and extra_link_args sections
* | MAINT: Remove commented out code blocksgfyoung2015-12-201-30/+0
| |
* | DOC: Use print only as function when print_function is imported from __future__gfyoung2015-12-191-1/+1
| | | | | | | | Closes gh-6863.
* | BUG: link cblas library if cblas is detectedAllan Haldane2015-12-041-11/+38
| |
* | BUG: Readd fallback CBLAS detection on linux.Charles Harris2015-11-251-1/+29
| | | | | | | | | | | | | | | | | | | | Fallback CBLAS detection was removed in gh-6183 because it led to problems on windows when mingw was used with python compiled with msvc but msvc was not installed. As a result of that fix, CBLAS detection failed for some Linux installations. The solution here is to add back the fallback detection but make it specific to non-windows platforms. Closes #6675.
* | MAINT: Dictionary litteralRémy Léone2015-11-071-9/+7
|/
* BLD: mingwpy fixescarlkl2015-09-241-18/+0
|
* Merge pull request #6243 from dzagorny/intel-distutils-fixesCharles Harris2015-09-221-2/+2
|\ | | | | BLD: Intel distutils fixes
| * MSVCCompiler overwrite 'lib' and 'include' environment variables. ThisDmitry Zagorny2015-09-151-2/+2
| | | | | | | | | | | | | | | | | | behavior affect at least python 3.5 and SciPy build and build failed. During initialization <python>.distutils.MSVCCompiler replace Intel environment('include' and 'lib' paths). This fix decorate 'initialize' function in MSVCCompiler and extend 'lib' and 'include' environment variables. Changed compilation keys: generate optimized code specialized for Intel processors with SSE4.2 support.
* | ENH: enabled extra_link_args in OpenBLAS segmentNick Papior2015-09-171-2/+13
|/ | | | | | | | | | | | | The extra_link_args is sadly not intrinsically used for many parts of the system_info code. This commit adds the linking properties stored when using extra_link_args in the openblas section to bypass any difficulties in the usage of OpenBLAS. This is especially helpful when linking against external LAPACK libraries which requires -lgfortran and possibly -lm for correct linking.
* BLD: Remove fallback CBLAS detection looking for cblas.h.Charles Harris2015-08-081-26/+1
| | | | | | | | This raises DistutilsPlatformError when mingw32 is used as the default ccompiler is msvc. That is fixable, but does not seem worth the trouble as looking for a cblas.h file for a last effort to detect cblas seems a bit fragile in any case. I think it is better handled elsewhere on a case by case basis in combination with site.cfg.
* Merge pull request #5597 from zerothi/ENH-distutilsCharles Harris2015-04-241-1/+47
|\ | | | | BLD, ENH: Reading of extra flags from site.cfg to extend flexibility
| * BUG: Had thought the defaults where made of lists, it is simply a str.Nick Papior Andersen2015-02-261-3/+3
| | | | | | | | Changed all lists to strings
| * ENH: rpath and runtime_library_dirs equivalentNick Papior Andersen2015-02-261-1/+6
| | | | | | | | | | | | | | | | | | The original distutils assumes runtime_library_dirs to be located in rpath, however, the internal structures assumes the keyword to be runtime_library_dirs. For now numpy.distutils handles both equivalently. The test has been updated to also test the rpath solution.
| * BUG: PEP correctionsNick Papior Andersen2015-02-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | More corrections pointed out by Ralf Changed the get_standard_file to a fully temporary file. This means that the __init__ diverges a bit from the system_info object. However, it only has to do with the setup for the test. All internal things regarding the object have not been altered. I have checked on my box that all files/directories are removed.
| * BUG: PEP corrections and streamlined with numpy dev lineNick Papior Andersen2015-02-251-2/+2
| | | | | | | | | | | | | | | | | | Changed self.assert* to assert_ instances through numpys own testing utilities. Fixes for the rst document. Removed unnecessary import statements in the test.
| * BLD, ENH: Reading of extra flags from site.cfg to extend flexibilityNick Papior Andersen2015-02-231-3/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Addition to the distutils module to be able to read in more optional arguments and flags from the site.cfg file. Currently are these additional options read: runtime_library_dirs: It allows users to set the runtime library directories so that LD_LIBRARY_PATH can be ignored. This has the same format as the library_dirs option. extra_compile_args: This allows the user to add specific compiler flags when compiling sources. There will be no formatting/checking of these additional compile flags, the compiler should complain if something is wrong. extra_link_args: This allows the user to add specific linker flags when linking the .so objects. There will be no formatting/checking of these additional compile flags, the linker should complain if something is wrong. When the config is runned it automatically prints out the read in information, thereby allowing the user to see what has been set and what has not. Tested with and without flags to check that it builds correctly.
* | BLD: Improve mingw-w64 detection of check_embedded_lapack.carlkl2015-02-271-0/+17
|/
* Merge pull request #5364 from charris/detect_atlas_3_10Charles Harris2014-12-241-3/+80
|\ | | | | ENH: Add support for ATLAS > 3.9.33.
| * ENH: Add support for ATLAS > 3.9.33.Charles Harris2014-12-241-3/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent ATLAS combines the previous libraries into two * libsatlas -- single threaded. * libtatlas -- threaded. This fix is a bit of hack in that ATLAS > 3.9.33 is treated as a new, separate library covered by atlas_3_10_info, but the latter derived from atlas_info, which treats the cblas, atlas, and atlas_lapack libraries separately, so the new info has a bit of repetition. The alternative would be to rewrite atlas_info, but that can wait on a larger cleanup of the build system. Closes #3774.
* | BLD: check for CBLAS header in "unoptimized" blasJulian Taylor2014-09-041-1/+25
| | | | | | | | | | Allows building against system installed blas library that might be optimized.
* | ENH: Add 'HAVE_CBLAS' macro for build purposes.Charles Harris2014-09-041-6/+11
|/ | | | | | | | The current system works for MKL and OpenBLAS by default because the mkl_info and openblas_info classes in numpy/distutils/system_info do not define the macro 'NO_ATLAS_INFO=1' that currently signals the absence of CBLAS. This PR declares the presence of CBLAS directly by defining the 'HAVE_CBLAS' macro.
* BUG: check if openblas embeds lapackJulian Taylor2014-05-221-1/+47
| | | | | | | | add openblas_lapack info which checks if it embedds lapack so lapack_info will point to openblas the normal openblas info does not check so it may or may not embed lapack. closes gh-4192
* BUG: don't set a default for libraries configuration keyJulian Taylor2014-05-221-1/+0
| | | | | | the get_libs function assumes there is no default to return the default it was asked to return in that case. Closes gh-4607
* ENH: Make output of get_atlas_info conditional on system_info.verbosityArnaud Bergeron2014-02-271-6/+5
|
* BUG: get_info('openblas') does not read libraries keyJulian Taylor2014-02-211-2/+4
| | | | | | | | | The documented libraries tag in the site.cfg is not read by the configuration, instead openblas_libs is used, this is inconsistent with atlas configuration. So libraries first and then try openblas_libs for backward compatibility. Also ensure check_libs returns None instead of a dict of empty lists if nothing is found.
* cross-platform code to find numpy configbbudescu2013-11-071-1/+1
| | | | https://github.com/numpy/numpy/issues/3995
* Do not fail with NameError if SandboxViolation is raisedJason Madden2013-09-281-1/+3
|
* Fix platform detection for intel platform where get_platform() returns a ↵Alex Barth2013-09-281-0/+2
| | | | string ending in x86_64, for instance 'macosx-10.8-x86_64'.
* Make vecLib / Accelerate not shadow other optimized builds under OSXOlivier Grisel2013-09-041-23/+33
|
* Add support for using openblas for the _dotblas function.Ake Sandgren2013-08-201-1/+23
|
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-1/+1
| | | | | | | 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.
* BLD: fix setuptools-specific easy_install issue. Closes gh-3160.Ralf Gommers2013-05-191-2/+4
| | | | | | | | An error is raised by setuptools when trying to write to /dev/null. Was fixed in distribute, but not in setuptools. No multi-arch support with plain setuptools should be OK, because multi-arch is Ubuntu specific (at least for now), and they ship distribute.