summaryrefslogtreecommitdiff
path: root/numpy/distutils/command/build_src.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: remove redundant open() modes and io.open() aliasMike Taves2022-10-291-2/+2
|
* MAINT: regex char class improveTyler Reddy2020-12-281-4/+4
| | | | | | | | | | | | | * replace superfluous single-character regex character classes with their literal string equivalents; this avoids the overhead associated with a character class when there's only a single character enclosed (so there's no benefit to the class overhead) * for more information see: Chapter 6 of: Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed., O’Reilly Media, 2009.
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* BUILD: change to build_src --verbose-cfg, runtests.py --debug-infomattip2019-10-031-4/+4
|
* BUILD, DOC: fix 14518, add release notemattip2019-09-221-1/+1
|
* MAINT: move the option to build_src, simplifies logicmattip2019-09-201-4/+6
|
* BUILD: add --debug-configure option to reduce output, use logger moremattip2019-09-201-1/+10
|
* Use *sys.version_info[:2]Hugo2019-08-261-1/+1
|
* BUG: Fix for Python 3.10Hugo2019-08-261-1/+1
|
* MAINT: Remove unnecessary backslashes when not needed.MSeifert042019-07-021-2/+2
| | | | See also: #13880
* MAINT: Use with statements for opening files in distutilsEric Wieser2019-03-011-36/+26
| | | | | | 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-061-2/+0
| | | | | | | | | | | | (#12448) * Review F401,F841,F842 flake8 errors (unused variables, imports) * Review comments * More tests in test_installed_npymath_ini * Review comments
* 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.
* 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.
* DOC: Fix more typos in docs and comments.Dongjoon Hyun2016-02-251-1/+1
|
* MAINT: remove outdated Pyrex support from distutils (as far as possible).Ralf Gommers2016-01-061-39/+8
|
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-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 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: Remove xreadlines and replace f.readlines() by f where valid.Charles Harris2013-03-051-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 Harris2013-03-011-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-filterCharles Harris2013-03-011-2/+2
|\ | | | | 2to3: Apply `filter` fixes. Closes #3053.
| * 2to3: Apply `filter` fixes. Closes #3053.Charles Harris2013-02-281-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 Harris2013-02-281-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 Hipschman2012-12-061-5/+2
| | | | file (issue #2551)
* 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
|
* Fix callable in build_src command.David Cournapeau2009-12-031-3/+3
|
* Make build_src and build_clib python3 importable.David Cournapeau2009-12-031-2/+2
|
* BUG: fix #1194.David Cournapeau2009-09-161-4/+4
|
* Do not import pyrex in distutils unless there are some pyrex source files.David Cournapeau2009-09-141-7/+9
|
* Do not finalize install_cmd if already finalized.David Cournapeau2009-08-041-1/+2
|
* BUG: fix building of npy-pkg-config file so that one can reliably get the ↵David Cournapeau2009-08-041-3/+12
| | | | install prefix from the install command,
* Add add_installed_pkg_config function, for automatic pkg-config-like ↵David Cournapeau2009-07-261-1/+68
| | | | generation/handling.
* Back out VS 2003 hack - it is too fragile.David Cournapeau2009-03-121-7/+0
|
* Ugly hack to workaround some bug in mingw to make VS 2003 work with gfortran.David Cournapeau2009-03-111-0/+7
|
* Python 3000 fixes for 2to3 [patch by James Watson].Stefan van der Walt2009-03-021-2/+5
|
* Replace numpy.distutils.exec_command.splitcmdline with shlex.split instead.cookedm2007-12-261-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 membershipJarrod Millman2007-11-281-3/+3
|
* Refactor Pyrex source building into a separate method in build_src.pycookedm2007-11-031-25/+33
|
* ran reindent.py to clean up whitespaceJarrod Millman2007-10-291-1/+1
|
* Import Pyrex.Compiler.Main explicitly since in 0.9.5.1, it does not appear ↵Robert Kern2007-07-021-1/+1
| | | | to be imported with a plain 'import Pyrex.Compiler'
* Use log.info instead of print in setup.py'scookedm2007-05-281-2/+4
|
* distutils: clean up imports (found by running pyflakes)cookedm2007-05-251-5/+5
|
* merge from distutils-revamp branch (step 3)cookedm2007-05-251-25/+19
| | | | - minor command/build_src cleanup
* build_src: introduced --swig and other related options (as in std distutils ↵Pearu Peterson2007-05-181-51/+97
| | | | build_ext command), use --f2py-opts instead of --f2pyflags, improved error messages.
* Raise exception when pyrex is required.Pearu Peterson2007-05-111-1/+5
|
* Try harder to get swig module name when in package.Pearu Peterson2006-04-261-1/+2
|
* Adding plat_specifier to build/src directory so that multiple platforms ↵Pearu Peterson2006-04-241-1/+4
| | | | could share build directory (fixes numpy/core config.h conflict).
* Fix build_src inplace build for library sources.Pearu Peterson2006-04-191-1/+1
|