summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_ext.py
Commit message (Collapse)AuthorAgeFilesLines
* BLD: some fixes for Intel compilers.Ralf Gommers2015-08-031-1/+1
| | | | | | | | - 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).
* MAINT: adapt parallel build option names to python3.5Julian Taylor2015-07-161-6/+6
| | | | python3.5 uses --parallel instead of --jobs
* 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-281-0/+9
| | | | | | | | | | | | | | 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.
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-18/+18
| | | | | | | 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.
* 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 `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-0/+2
| | | | | | | | 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.
* DEP: Remove scons related files and code.Charles Harris2013-01-131-5/+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.
* ENH: Introduce new options extra_f77_compile_args and extra_f90_compile_args toPearu Peterson2011-08-201-0/+3
| | | | | | 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-201-3/+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.
* Introduce new options extra_f77_compiler_args and extra_f90_compiler_args to ↵Pearu Peterson2011-08-161-0/+3
| | | | Configuration.add_extension. Configuration.add_library, and Extension. These options allow specifying extra compile options for compiling Fortran sources within a setup.py file.
* Fix print/repr/raise python3 incompatibilities in system_info and build_ext ↵David Cournapeau2009-12-031-5/+5
| | | | command.
* BUG: retrieve build_clib in build_ext even if it has already been run.David Cournapeau2009-11-161-0/+1
|
* When built in-place, make sure build_clib is built inplace too.David Cournapeau2009-07-261-2/+14
| | | | | | | If numpy is built in-place and used by a third-party, we need to make sure installable libraries are put in the source directory, to mimic an install. Whenever build_ext is called with -i option, we call build_clib with the -i option as well.
* Remove print statements which should not have been committed.David Cournapeau2009-04-211-3/+0
|
* Move is_bootstrapping outside scons command, may be useful elsewhere.David Cournapeau2009-04-211-0/+3
|
* Remove tabs and unnecessary whitespace.Stefan van der Walt2009-04-161-4/+4
|
* Back out VS 2003 hack - it is too fragile.David Cournapeau2009-03-121-4/+1
|
* Ugly hack to workaround some bug in mingw to make VS 2003 work with gfortran.David Cournapeau2009-03-111-1/+14
|
* Remove handling of MS_WIN64 in commands: deal with it in mingw tool only.David Cournapeau2008-12-201-8/+0
|
* Fix macro def.David Cournapeau2008-12-191-1/+1
|
* Use a tuple when defining the MS_WIN64 macro.David Cournapeau2008-12-191-1/+1
|
* Forgot to import get_build_architecture.David Cournapeau2008-12-191-1/+1
|
* Add MS_WIN64 macro when built on amd64 + mingw.David Cournapeau2008-12-191-0/+8
|
* BUG: reinitialize_command(**kwds) is a setuptools override of the distutils ↵Robert Kern2008-08-231-1/+2
| | | | API. Set the attribute directly, instead.
* Run scons command in build_ext instead of build.David Cournapeau2008-08-201-0/+5
| | | | | | | setuptools develop run build_ext inplace, not build, so develop command in setuptools would not call the scons command. Now, the develop mode should work with numscons.
* use 'in' keyword to test dictionary membershipJarrod Millman2007-11-281-2/+2
|
* Back out change made in r4380 which causes scipy.fftpack not to build correctly.Travis Oliphant2007-11-081-6/+1
|
* numpy.distutils.command.build_ext: append build C libraries as dependencies ofcookedm2007-11-031-1/+7
| | | | the extension, to force recompiling if they change. (It should really only force relinking, but adding that is tougher.)
* fixing link error: fixed. Removing debug messages and added a warning ↵Pearu Peterson2007-09-231-2/+0
| | | | message on the situation that triggered this issue: numpy.distutils must always be imported before distutils.
* fixing link error: added debug message, 3.Pearu Peterson2007-09-231-0/+2
|
* More fixes for building scipy with Mingw32 compilers.Pearu Peterson2007-07-251-5/+7
|
* Better version handling in fcompilercookedm2007-06-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | * Remove FCompiler.get_version_cmd, FCompiler.get_flags_version, FCompiler.get_linker_so_cmd, and FCompiler.get_linker_exe_cmd; subclasses should do this in FCompiler.update_executables() * FCompiler attributes .compiler_f77, .version_cmd, etc., are now properties that read from the .executables dictionary. * Update intel.py and absoft.py for above * Add extra asserts for defensive programming. Most of our problems here seem to come from bad values being generated, and the error not being caught until later. * must call FCompiler.customize() before FCompiler.get_version(); command/build_ext.py and command/config.py updated * verify that commands make sense earlier -- must be None or lists of strings Also, * add IA-32 as another pattern to search for in 32-bit Intel compiler version. * minor formatting * add debugging helpers to environment.py:EnvironmentConfig class
* Fix issues with undetected Fortran compilers.Pearu Peterson2007-05-311-2/+8
|
* do an appropiate behaviour in the distutils commands when new_fcompiler ↵cookedm2007-05-311-2/+2
| | | | returns None
* minor cleanups in numpy.distutils (style mostly)cookedm2007-05-211-51/+53
|
* Clean up and completed (hopefully) MSVC support.Pearu Peterson2007-05-191-5/+31
|
* Fix for win32 platform.Pearu Peterson2007-05-191-0/+1
|
* Added --help-fcompiler option to build_ext command.Pearu Peterson2007-05-181-1/+6
|
* unify config_fc, build_clib, build_ext commands --fcompiler options so that ↵Pearu Peterson2007-05-181-4/+1
| | | | --fcompiler can be specified only once in a command line
* Fixed warnings on language changes.Pearu Peterson2007-05-181-1/+1
|
* Extension modules and libraries are built with suitable compilers/linkers. ↵Pearu Peterson2007-05-181-152/+212
| | | | Improved failure handling.
* Some distutils work:cookedm2007-04-221-26/+14
| | | | | | | | | | | | | | - Add better support for C++ in numpy.distutils. Instead of munging the C compiler command, build_clib and build_ext call the new Compiler.cxx_compiler() method to get a version of the compiler suitable for C++ (this also takes care of the special needs of AIX). - If config_fc is specified in the Extension definition, merge that info instead of replacing it (otherwise, the name of the Fortran compiler is overwritten). This is done at the key level (ex., compiler options are replaced instead of appended). - clean up compiler.py a bit - clean up linking in build_ext
* Fix command dependencies for build_ext. This should fix a number of problems ↵Robert Kern2007-04-151-3/+2
| | | | where the full 'build_src build_clib build_ext' chain of commands needed to be specified.
* Fix typo.Stefan van der Walt2006-11-041-1/+1
|
* numpy.distutils: use language flag or source file extension to select ↵Pearu Peterson2006-10-081-1/+9
| | | | default f77 or f90 compiler.