summaryrefslogtreecommitdiff
path: root/numpy/distutils/command
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: warn in egg_info command if using setuptools.sdist.Ralf Gommers2016-01-271-0/+8
| | | | | | Warn in numpy/distutils/command/egg_info.py if using setuptools.sdist. See gh-7127 for details.
* MAINT: remove outdated Pyrex support from distutils (as far as possible).Ralf Gommers2016-01-061-39/+8
|
* Merge pull request #6436 from juliantaylor/conf-warningsCharles Harris2015-10-101-0/+2
|\ | | | | MAINT: remove Wreturn-type warnings from config checks
| * MAINT: remove Wreturn-type warnings from config checksJulian Taylor2015-10-091-0/+2
| | | | | | | | closes gh-6427
* | BLD: some fixes for Intel compilers.Ralf Gommers2015-08-032-2/+3
|/ | | | | | | | - Fix an incorrect import - Enable C99 complex support (Qstd=c99) - Don't use MSVC complex types for Intel compilers Thanks to Intel for this patch (contact: Yolanda Chen).
* Merge pull request #6052 from insertinterestingnamehere/lib_fixRalf Gommers2015-07-261-1/+1
|\ | | | | BUG: Fix handling of dependencies between libraries
| * BUG: Allow libraries to be used as dependencies for other libraries whenIan Henriksen2015-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | compiling with numpy.distutils. For example, something like this will now work as a configuration function: def configuration(): config = Configuration() config.add_library('mylib1', sources=['mylib1.f']) config.add_library('mylib2', sources=['mylib2.f'], libraries=['mylib1']) config.add_extension('pymodule', sources=['pymodule.c'], libraries=['mylib2']) return config Arbitrary handling of dependencies between libraries is still not supported, but this should make some basic cases work properly.
* | MAINT: adapt parallel build option names to python3.5Julian Taylor2015-07-163-17/+17
|/ | | | python3.5 uses --parallel instead of --jobs
* DEP,MAINT: Remove try_run and get_output.Charles Harris2015-06-211-57/+0
| | | | Deprecated functions in numpy/distutils/command/config.py.
* MAINT: Mark deprecation warning with a date and Numpy version.Charles Harris2015-06-211-0/+2
| | | | | | This is to make it easier to find and remove deprecated features. It would be a good idea if all deprecations were made with similar comments.
* BLD: find Python.h when build_ext --include-dirs is setTim D. Smith2015-06-051-3/+17
| | | | | Ensure that build_ext.include_dirs is the same physical list as build_ext.distribution.include_dirs.
* ENH: support parallel compilation of extensionsJulian Taylor2014-10-283-1/+29
| | | | | | | | | | | | | | Allow extensions using numpy.distutils to compile in parallel. By passing `--jobs=n` or `-j n` to `setup.py build` the compilation of extensions is now performed in `n` parallel processes. Additionally the environment variable NPY_NUM_BUILD_JOBS is used as the default value, if its unset the default is serial compilation. The parallelization is limited to within the files of an extension, so only numpy multiarraymodule really profits but its still a nice improvement when you have 2-4 cores. Unfortunately Cython will not profit at all as it tends to build one module per file.
* MAINT: remove obsolete version checksJulian Taylor2014-10-151-6/+2
| | | | | minimum requirement is python2.6, this allows removing a couple 2.3 and 2.4 checks.
* BLD: add check for C99 restrict keywordJulian Taylor2014-09-292-0/+23
| | | | | | Define it as NPY_RESTRICT Restrict indicates a memory block does not alias, gcc supports it in c89 with the __restrict__ keyword.
* MAINT: make main a strict prototype in configure checksJulian Taylor2014-09-091-6/+6
| | | | removes about 400 lines of warnings from the build logs
* Merge pull request #4892 from rgommers/msvc10-fixJulian Taylor2014-07-201-5/+16
|\ | | | | BLD: fix build issues with MSVC10 on Windows. Closes gh-4245.
| * BLD: fix build issues with MSVC10 on Windows. Closes gh-4245.Ralf Gommers2014-07-201-5/+16
| | | | | | | | | | | | | | | | | | | | | | Note that there are a few similar patches posted to gh-4101 and gh-4245. Those were all patches to msvc9compiler in Python distutils. Monkeypatching ``MSVCCompiler.link`` is less easy than this change to ``config._check_compiler``; effect should be the same. Also updates the error message shown when initializing MSVC fails. [ci skip]
* | REF: remove obsolete code.David Cournapeau2014-07-072-33/+1
| |
* | FEAT: add a check_gcc_variable_attribute function in config command.David Cournapeau2014-07-072-0/+21
| |
* | 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-062-1/+14
| |
* | FEAT: add check_gcc_function_attribute check.David Cournapeau2014-07-062-1/+22
| |
* | FEAT: add a try_output_compile in numpy.distutils.David Cournapeau2014-07-061-0/+20
|/
* BUG: Fix use of setuptools.command.install._install.Charles Harris2014-05-041-3/+6
| | | | | | | | This private variable has disappeared in later versions of setuptools. In older versions of setuptools it is the same as distutils.command.install.install, so use that instead. Closes #4664.
* BLD: allow strings for check_func declarationsJulian Taylor2014-04-231-1/+4
| | | | makes attribute checks more sane and allows adding nonnull
* ENH: Make output of get_atlas_info conditional on system_info.verbosityArnaud Bergeron2014-02-271-2/+3
|
* BUG: fix wrong gcc version checkJulian Taylor2013-09-271-2/+2
| | | | probably irrelevant by now, but emits a warning during compilation.
* STY: Giant comma spacing fixup.Charles Harris2013-08-1812-108/+108
| | | | | | | 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.
* STY: Giant whitespace cleanup.Charles Harris2013-08-182-2/+2
| | | | Now is as good a time as any with open PR's at a low.
* reduces excess cleverness from 1/2 to 1/3Adam Ginsburg2013-04-211-2/+2
|
* bugfix in build_ext: check that ext has an attribute before trying toAdam Ginsburg2013-04-181-2/+2
| | | | use it
* 2to3: apply `dict` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | | | | | | | | | In Python3 `dict.items()`, `dict.keys()`, and `dict.values()` are iterators. This causes problems when a list is needed so the 2to3 fixer explicitly constructs a list when is finds on of those functions. However, that is usually not necessary, so a lot of the work here has been cleaning up those places where the fix is not needed. The big exception to that is the `numpy/f2py/crackfortran.py` file. The code there makes extensive use of loops that modify the contents of the dictionary being looped through, which raises an error. That together with the obscurity of the code in that file made it safest to let the `dict` fixer do its worst. Closes #3050.
* 2to3: Apply `print` fixer.Charles Harris2013-04-0618-18/+18
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* Merge pull request #460 from endolith/regex_formattingCharles Harris2013-04-031-1/+1
|\ | | | | DOC: Formatting fixes using regex
| * DOC: Used regex to find colons missing spaces which render wrong online, ↵endolith2013-03-191-1/+1
| | | | | | | | also other spacing or formatting mistakes
* | 2to3: Use absolute imports.Charles Harris2013-03-2818-18/+18
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Remove xreadlines and replace f.readlines() by f where valid.Charles Harris2013-03-052-6/+4
| | | | | | | | | | An open file `f` has been an iterator since python2.3 and `f.xreadlines()` is no longer needed, so replace it with `f`. Also replace `f.readlines()` with `f` where an iterator will do. The replacement of `f.readlines()` is not critical because it is a list in both python2 and python3, but the code is a bit cleaner. Closes #3093
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-0118-2/+44
| | | | | | | | 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.
* Merge pull request #3056 from charris/2to3-filterCharles Harris2013-03-012-3/+3
|\ | | | | 2to3: Apply `filter` fixes. Closes #3053.
| * REF: Replace filters with list comprehensions.Charles Harris2013-02-281-1/+1
| | | | | | | | | | | | 2to3 does a lot of list(filter(...)) sort of thing which can be avoided by using list comprehensions instead of filters. This also seems to clarify the code to a considerable degree.
| * 2to3: Apply `filter` fixes. Closes #3053.Charles Harris2013-02-282-3/+3
| | | | | | | | | | Generally, this involves using list comprehension, or explicit list construction as `filter` is an iterator in Python 3.
* | 2to3: Apply `funcattrs` fixer. Closes #3058.Charles Harris2013-02-281-1/+1
|/ | | | | This replaces the `b.func_xxxx` with newer `__xxxx__` attribute names For example, `f.__name__` replaces `f.func_name`
* DEP: Remove scons related files and code.Charles Harris2013-01-132-594/+0
| | | | | | | | | This removes files and code supporting scons builds. After this change numpy will only support builds using distutils or bento. The removal of scons has been discussed on the list several times and a decision has been made that scons support is no longer needed. This was originally discussed for numpy 1.7 and because the distutils and bento methods are still available we are skipping the usual deprecation period.
* Fix distutils build_src with 'c++' in swig_opts and a c++ comment in the .i ↵Dan Hipschman2012-12-061-5/+2
| | | | file (issue #2551)
* ENH: Introduce new options extra_f77_compile_args and extra_f90_compile_args toPearu Peterson2011-08-202-0/+7
| | | | | | Configuration.add_extension. Configuration.add_library, and Extension. These options allow specifying extra compile options for compiling Fortran sources within a setup.py file.
* BUG: Revert commit that causes many tests not to run.Charles Harris2011-08-202-7/+0
| | | | | | Revert "Introduce new options extra_f77_compiler_args and extra_f90_compiler_args to Configuration.add_extension. Configuration.add_library, and Extension. These options allow specifying extra compile options for compiling Fortran sources within a setup.py file." This reverts commit 43862759384a86cb4a95e8adb4d39fa1522acb28.
* BLD: follow build_ext coding convention in build_clib to catch strange ↵Pearu Peterson2011-08-191-12/+14
| | | | fcompiler value reported in ml.
* Introduce new options extra_f77_compiler_args and extra_f90_compiler_args to ↵Pearu Peterson2011-08-162-0/+7
| | | | Configuration.add_extension. Configuration.add_library, and Extension. These options allow specifying extra compile options for compiling Fortran sources within a setup.py file.
* BUG: core: use #if check instead of #ifdef in checking HAVE_DECL_ISFINITE ↵Pauli Virtanen2010-10-061-0/+16
| | | | | | | (ticket #1625) Python #defines HAVE_DECL_ISFINITE 0 when the function is not available, so the proper check to do is #if.