summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/autodist.py
Commit message (Collapse)AuthorAgeFilesLines
* BLD: add new check_compiler_gcc and check_gcc_version_at_least configureE. Madison Bray2020-10-131-4/+29
| | | | | | | commands replaces obsolete (no longer used anywhere AFICT check_compiler_gcc4 with some more general utilities for checking GCC version
* BLD: Avoid "visibility attribute not supported" warning (gh-16288)E. M. Bray2020-05-201-1/+4
| | | | | | | | | | | | I found that when building the latest master branch on Cygwin, while testing #16246, that thousands of warnings were generated at build time like: numpy/core/src/npysort/binsearch.c.src: In function ‘binsearch_left_bool’: numpy/core/src/npysort/binsearch.c.src:82:1: warning: visibility attribute not supported in this configuration; ignored [-Wattributes] Granted this is just a warning, so I don't think it's a serious issue. It seems the test that was supposed to check for __attribute__ support was not working as expected. The #pragmas only take effect if I provide a function body--they are ignored for bare declarations. I don't know if that's by intent, or if it's a GCC issue. For reference: $ gcc --version gcc (GCC) 7.4.0
* 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.
* MAINT: Use textwrap.dedent for multiline stringsEric Wieser2019-06-121-65/+71
| | | | | | This makes it easier to visually jump between functions. A couple places have changed to not emit leading whitespace where they previously did. Since this is C code and not fortran, that doesn't matter.
* BUG: Adding macro HAVE_ATTRIBUTE_TARGET_@ISA@_WITH_INTRINSICSRaghuveer Devulapalli2019-04-191-0/+20
| | | | | | | | | 1) use __builtin_cpu_supports("avx512f") only for gcc ver >= 5 2) Introduced two new macro's: HAVE_ATTRIBUTE_TARGET_@ISA@_WITH_INTRINSICS for ensuring compiler can compile functions that use intrinsics and are compiled with avx2/avx512f attributes
* MAINT: remove Wreturn-type warnings from config checksJulian Taylor2015-10-091-0/+2
| | | | closes gh-6427
* BLD: add check for C99 restrict keywordJulian Taylor2014-09-291-0/+17
| | | | | | Define it as NPY_RESTRICT Restrict indicates a memory block does not alias, gcc supports it in c89 with the __restrict__ keyword.
* REF: remove obsolete code.David Cournapeau2014-07-071-7/+0
|
* FEAT: add a check_gcc_variable_attribute function in config command.David Cournapeau2014-07-071-0/+17
|
* ENH: use pragma instead of generic warning when detecting for function ↵David Cournapeau2014-07-071-5/+12
| | | | attributes.
* BUG: fix check_gcc_function_attribute when attribute is actually supported.David Cournapeau2014-07-061-8/+1
|
* FEAT: add check to ensure compilation without warning for a piece of code.David Cournapeau2014-07-061-0/+7
|
* FEAT: add check_gcc_function_attribute check.David Cournapeau2014-07-061-0/+17
|
* BUG: fix wrong gcc version checkJulian Taylor2013-09-271-2/+2
| | | | probably irrelevant by now, but emits a warning during compilation.
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Use absolute imports.Charles Harris2013-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-1/+5
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* Do not harcode visibility macro, enable it for gcc 4.David Cournapeau2009-04-301-0/+14
|
* Add check for (C) inline.David Cournapeau2009-03-111-0/+25