summaryrefslogtreecommitdiff
path: root/numpy/distutils/command
Commit message (Collapse)AuthorAgeFilesLines
...
* DEV: cleanup imports and some assignments (from LGTM)mattip2019-03-171-2/+2
|
* MAINT: Use with statements for opening files in distutilsEric Wieser2019-03-012-46/+35
| | | | | | Not super important, but saves some lines. Only the low-hanging ones here. Found while tracking down an unrelated ResourceWarning
* MAINT: Review F401,F841,F842 flake8 errors (unused variables and imports) ↵Roman Yurchak2018-12-062-3/+1
| | | | | | | | | | | | (#12448) * Review F401,F841,F842 flake8 errors (unused variables, imports) * Review comments * More tests in test_installed_npymath_ini * Review comments
* Use set litteralsRoman Yurchak2018-11-241-2/+2
|
* MAINT: remove unused stdlib importsEmil Hessman2018-09-301-2/+0
|
* MAINT: avoid modifying mutable default valuesEmil Hessman2018-09-291-3/+6
|
* MAINT: remove usage of exec_command in config.pyTyler Reddy2018-09-121-6/+27
| | | | | | * replace usage of exec_command() with standard library equivalent in the distutils config module
* Merge pull request #11909 from mattip/flake8-cleanupsCharles Harris2018-09-111-1/+0
|\ | | | | MAINT: flake8 cleanups
| * MAINT: remove redundant importsmattip2018-09-091-1/+0
| |
* | MAINT: remove exec_command from build_extTyler Reddy2018-09-101-4/+8
|/ | | | | | | * the single usage of exec_command in distutils build_ext module has been replaced with a standard library usage of subprocess
* BLD: cleanup _configtest.o.d during buildAllan Haldane2018-06-011-2/+6
|
* More misc. typosluz.paz2018-01-041-1/+1
| | | Found via `codespell`
* BUG: skip the extra-dll directory when there are no DLLSxoviat2018-01-031-2/+2
| | | | | | | When the gfortran functionality is not used, we don't want to enable the __config__ functionality. This mistake was put in as an earlier optimization but led to failures with conda.
* BUG: distutils: use correct top-level package namexoviat2017-12-241-10/+20
| | | | | | | | Here, we align the extra-dll name to the one that auditwheel uses, and we handle the case where 1) there is more than one root package and 2) the root package name is different than the distribution name
* distutils: handle unlinkable object files in build_clib/build_ext, not gnuPauli Virtanen2017-09-022-26/+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-022-81/+117
| | | | | | | | | | 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
* BUG: KeyboardInterrupt is swallowed all over the placeEric Wieser2017-06-031-1/+1
| | | | Bare except is very rarely the right thing
* BUG: distutils, place fortranobject files in subfolderJulian Taylor2017-05-041-6/+6
| | | | | Placing them all under the same name in the top level folder breaks when using the parallel extension compilation option of python 3.5.
* MAINT: better warning message when running build_src from sdistRalf Gommers2017-03-091-3/+11
| | | | Addresses comment of @stefanv on gh-7131.
* DEP: Fix escaped string characters deprecated in Python 3.6.Charles Harris2016-12-141-5/+6
| | | | | | | 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.
* TST: Add tests for stacklevel in warnings and "ignore" filters.Sebastian Berg2016-09-021-1/+1
| | | | | Enforces that stacklevel is used in warnings.warn and "ignore" is not used in filterwarnings or simplefilter for most of numpy.
* ENH: Add stacklevel to all (or almost all) our function callsSebastian Berg2016-09-021-1/+1
|
* Restore get_outputMarshall Bockrath-Vandegrift2016-07-151-0/+45
| | | | The ATLAS version check still depends on this function.
* DOC: Fix more typos in docs and comments.Dongjoon Hyun2016-02-251-1/+1
|
* DOC: Fix mismatched variable names in docstrings.Dongjoon Hyun2016-02-151-1/+1
|
* 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
|/