summaryrefslogtreecommitdiff
path: root/numpy/distutils/command
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* BUG: distutils: use // in a binary search (fixes #1604 on Python 3)Pauli Virtanen2010-09-041-1/+1
|
* Implemented detection of gfortran usage for ATLAS linkage. get_atlas_version ↵Pearu Peterson2010-08-301-3/+26
| | | | returns now a tuple (version_str, info_dict). Nice thing about the patch is that specifying gnu95 compiler is not needed anymore for numpy (neither for scipy) build when using ATLAS containing gfortran compiled blas/lapack.
* Fix bug to ensure that swig generated .py files are installed.Pearu Peterson2010-08-252-1/+9
|
* Fix swig target extension when swig target is not defined by the .i file but ↵Pearu Peterson2010-08-251-3/+11
| | | | should be c++.
* Make extension swig_opts effective to build_src command.Pearu Peterson2010-08-251-2/+6
|
* remove has_key from config.David Cournapeau2009-12-031-2/+2
|
* Fix callable in build_src command.David Cournapeau2009-12-031-3/+3
|
* Py3k: make scons command py3k importable.David Cournapeau2009-12-031-2/+5
|
* Make build_src and build_clib python3 importable.David Cournapeau2009-12-032-7/+6
|
* Fix print/repr/raise python3 incompatibilities in system_info and build_ext ↵David Cournapeau2009-12-031-5/+5
| | | | command.
* Py3k: make config command py3k importable.David Cournapeau2009-12-031-5/+8
|
* BUG: retrieve build_clib in build_ext even if it has already been run.David Cournapeau2009-11-161-0/+1
|
* BUG: setuptools does not run install_clib automatically -- run it manually ↵Pauli Virtanen2009-11-122-2/+16
| | | | in install_data, if setuptools is present (fix #1194)
* BUG: pkg_paths was wrongly set when using --package-list for numscons build.David Cournapeau2009-10-271-1/+1
|
* Add a pkg_path option to add_sconcript.David Cournapeau2009-10-011-4/+9
| | | | | This is necessary to handle some cases where scons scripts and packages are not in the same directory.
* Put scons data into its own class.David Cournapeau2009-10-011-9/+11
|
* Add debug option to scons command.David Cournapeau2009-09-191-0/+6
|
* Add option to import user environment into numscons.David Cournapeau2009-09-171-0/+3
|
* BUG: fix #1194.David Cournapeau2009-09-161-4/+4
|
* BUG: fix clib install directory for scons command.David Cournapeau2009-09-141-1/+7
|
* Start adding library options for scons option.David Cournapeau2009-09-141-1/+22
|
* Re-indent scons command options.David Cournapeau2009-09-141-20/+20
|
* Further whitespace/tab fixes.David Cournapeau2009-09-141-3/+3
|
* Move scons call command line building into its own private function.David Cournapeau2009-09-141-71/+75
|
* Fix tab/space issue in scons command.David Cournapeau2009-09-141-3/+3
|
* Do not import pyrex in distutils unless there are some pyrex source files.David Cournapeau2009-09-141-7/+9
|
* BUG: we were protecting c++ and fortran compiler path twice, which made ↵David Cournapeau2009-09-091-2/+2
| | | | scons interpret the path as target.
* Tell scons whether we are in bypass mode or not.David Cournapeau2009-09-091-0/+1
|
* Do not pass compiler path options to scons if they were not set.David Cournapeau2009-09-091-3/+6
|
* Require numscons 0.11 or above.David Cournapeau2009-09-091-2/+2
|