Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | MAINT: remove outdated Pyrex support from distutils (as far as possible). | Ralf Gommers | 2016-01-06 | 1 | -39/+8 |
| | |||||
* | STY: Giant comma spacing fixup. | Charles Harris | 2013-08-18 | 1 | -48/+48 |
| | | | | | | | 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. | ||||
* | 2to3: Apply `print` fixer. | Charles Harris | 2013-04-06 | 1 | -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 Harris | 2013-03-28 | 1 | -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: Remove xreadlines and replace f.readlines() by f where valid. | Charles Harris | 2013-03-05 | 1 | -5/+3 |
| | | | | | | | | | | 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 Harris | 2013-03-01 | 1 | -0/+1 |
| | | | | | | | | 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-filter | Charles Harris | 2013-03-01 | 1 | -2/+2 |
|\ | | | | | 2to3: Apply `filter` fixes. Closes #3053. | ||||
| * | 2to3: Apply `filter` fixes. Closes #3053. | Charles Harris | 2013-02-28 | 1 | -2/+2 |
| | | | | | | | | | | 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 Harris | 2013-02-28 | 1 | -1/+1 |
|/ | | | | | This replaces the `b.func_xxxx` with newer `__xxxx__` attribute names For example, `f.__name__` replaces `f.func_name` | ||||
* | Fix distutils build_src with 'c++' in swig_opts and a c++ comment in the .i ↵ | Dan Hipschman | 2012-12-06 | 1 | -5/+2 |
| | | | | file (issue #2551) | ||||
* | Fix swig target extension when swig target is not defined by the .i file but ↵ | Pearu Peterson | 2010-08-25 | 1 | -3/+11 |
| | | | | should be c++. | ||||
* | Make extension swig_opts effective to build_src command. | Pearu Peterson | 2010-08-25 | 1 | -2/+6 |
| | |||||
* | Fix callable in build_src command. | David Cournapeau | 2009-12-03 | 1 | -3/+3 |
| | |||||
* | Make build_src and build_clib python3 importable. | David Cournapeau | 2009-12-03 | 1 | -2/+2 |
| | |||||
* | BUG: fix #1194. | David Cournapeau | 2009-09-16 | 1 | -4/+4 |
| | |||||
* | Do not import pyrex in distutils unless there are some pyrex source files. | David Cournapeau | 2009-09-14 | 1 | -7/+9 |
| | |||||
* | Do not finalize install_cmd if already finalized. | David Cournapeau | 2009-08-04 | 1 | -1/+2 |
| | |||||
* | BUG: fix building of npy-pkg-config file so that one can reliably get the ↵ | David Cournapeau | 2009-08-04 | 1 | -3/+12 |
| | | | | install prefix from the install command, | ||||
* | Add add_installed_pkg_config function, for automatic pkg-config-like ↵ | David Cournapeau | 2009-07-26 | 1 | -1/+68 |
| | | | | generation/handling. | ||||
* | Back out VS 2003 hack - it is too fragile. | David Cournapeau | 2009-03-12 | 1 | -7/+0 |
| | |||||
* | Ugly hack to workaround some bug in mingw to make VS 2003 work with gfortran. | David Cournapeau | 2009-03-11 | 1 | -0/+7 |
| | |||||
* | Python 3000 fixes for 2to3 [patch by James Watson]. | Stefan van der Walt | 2009-03-02 | 1 | -2/+5 |
| | |||||
* | Replace numpy.distutils.exec_command.splitcmdline with shlex.split instead. | cookedm | 2007-12-26 | 1 | -3/+3 |
| | | | | | | | | It has the same problems as our old numpy.distutils.ccompiler.split_quoted. splitcmdline still exists, but uses shlex.split, and issues a DeprecationWarning This has the positive side effect of not having numpy.distutils pulled in when numpy is imported -- there was a use of splitcmdline in numpy.testing. | ||||
* | use 'in' keyword to test dictionary membership | Jarrod Millman | 2007-11-28 | 1 | -3/+3 |
| | |||||
* | Refactor Pyrex source building into a separate method in build_src.py | cookedm | 2007-11-03 | 1 | -25/+33 |
| | |||||
* | ran reindent.py to clean up whitespace | Jarrod Millman | 2007-10-29 | 1 | -1/+1 |
| | |||||
* | Import Pyrex.Compiler.Main explicitly since in 0.9.5.1, it does not appear ↵ | Robert Kern | 2007-07-02 | 1 | -1/+1 |
| | | | | to be imported with a plain 'import Pyrex.Compiler' | ||||
* | Use log.info instead of print in setup.py's | cookedm | 2007-05-28 | 1 | -2/+4 |
| | |||||
* | distutils: clean up imports (found by running pyflakes) | cookedm | 2007-05-25 | 1 | -5/+5 |
| | |||||
* | merge from distutils-revamp branch (step 3) | cookedm | 2007-05-25 | 1 | -25/+19 |
| | | | | - minor command/build_src cleanup | ||||
* | build_src: introduced --swig and other related options (as in std distutils ↵ | Pearu Peterson | 2007-05-18 | 1 | -51/+97 |
| | | | | build_ext command), use --f2py-opts instead of --f2pyflags, improved error messages. | ||||
* | Raise exception when pyrex is required. | Pearu Peterson | 2007-05-11 | 1 | -1/+5 |
| | |||||
* | Try harder to get swig module name when in package. | Pearu Peterson | 2006-04-26 | 1 | -1/+2 |
| | |||||
* | Adding plat_specifier to build/src directory so that multiple platforms ↵ | Pearu Peterson | 2006-04-24 | 1 | -1/+4 |
| | | | | could share build directory (fixes numpy/core config.h conflict). | ||||
* | Fix build_src inplace build for library sources. | Pearu Peterson | 2006-04-19 | 1 | -1/+1 |
| | |||||
* | Fix inplace building of data sources. | Pearu Peterson | 2006-03-31 | 1 | -7/+7 |
| | |||||
* | Run reindent.py (script distributed with Python) over the source to remove ↵ | cookedm | 2006-03-10 | 1 | -1/+1 |
| | | | | extraneous whitespace | ||||
* | Changed -M to -J for gfortran. | Pearu Peterson | 2006-02-06 | 1 | -1/+1 |
| | |||||
* | Added pyrex support to numpy.distutils. | Pearu Peterson | 2006-02-06 | 1 | -0/+41 |
| | |||||
* | Remove unused imports | cookedm | 2006-02-02 | 1 | -7/+2 |
| | |||||
* | Partial fix to build failure | cookedm | 2006-02-02 | 1 | -3/+3 |
| | |||||
* | Replace type(a) is (something) with appropiate is_string/is_sequence tests | cookedm | 2006-02-01 | 1 | -14/+15 |
| | |||||
* | Misc cleanups + replace `a` with %r or repr(a) | cookedm | 2006-01-31 | 1 | -17/+25 |
| | | | | | Also replace some type checks with misc_util.is_sequence or misc_util.is_string or appropiate isinstance(). | ||||
* | Fixing inplace support for data_files and py_modules. | Pearu Peterson | 2006-01-31 | 1 | -5/+13 |
| | |||||
* | Added data_files generator support - removed a piece of core.setup function. | Pearu Peterson | 2006-01-27 | 1 | -0/+38 |
| | |||||
* | __config__.py files are generated through py_modules list. Added get_info ↵ | Pearu Peterson | 2006-01-24 | 1 | -6/+31 |
| | | | | method to Configuration. | ||||
* | Changed all references to scipy to numpy | Travis Oliphant | 2006-01-04 | 1 | -9/+9 |
| | |||||
* | Moved scipy directory to numpy | Travis Oliphant | 2006-01-04 | 1 | -0/+542 |