summaryrefslogtreecommitdiff
path: root/numpy/distutils/exec_command.py
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Fix some typos in a code string and commentsDongjoon Hyun2016-01-271-1/+1
|
* Added closing for 'so_dup' and 'se_dup' file descriptors.Dmitry Zagorny2015-09-151-0/+2
| | | | | | | | | | | | Issue: _exec_command function doesn't close 'so_dup' and 'se_dup' file descriptors.SciPy try to build scipy\special\amos\zunik.f and crash:error: Command "C:\Program Files (x86)\Intel\Composer XE 2015\bin\intel64\ifort.exe /nologo /MD /nbs /names:lowercase /assume:underscore /O1 -IC:\Python27\lib\site-packages\numpy\core\include -c /c scipy\special\amos\zunik.f /Fobuild\temp.win-amd64-2.7\scipy\special\amos\zunik.o" failed with exit status -1073741502
* restrict to windows py3 and add commentJames Salter2015-07-171-7/+18
|
* don't pass un-encodable env to spawnJames Salter2015-07-171-2/+10
|
* DOC: Fix docstring warnings in documetation generation.Charles Harris2015-07-011-32/+50
| | | | | | | | | | | | Most of these fixes involve putting blank lines around .. versionadded:: x.x.x and .. deprecated:: x.x.x Some of the examples were also fixed.
* DEP,MAINT: Remove deprecated splitcmdline.Charles Harris2015-06-211-7/+0
| | | | | Was in numpy/distutils/exec_command.py. Update 1.10-notes.rst.
* MAINT: Mark deprecation warning with a date and Numpy version.Charles Harris2015-06-211-0/+1
| | | | | | 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.
* ENH: Make output of get_atlas_info conditional on system_info.verbosityArnaud Bergeron2014-02-271-1/+1
|
* STY: Giant comma spacing fixup.Charles Harris2013-08-181-112/+112
| | | | | | | 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 `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-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
* Implement separate checking for stdout and stderrOndrej Certik2013-03-091-11/+11
| | | | And enable a test for this that was failing before.
* PEP8: don't use \Ondrej Certik2013-03-071-2/+2
|
* FIX: add _supports_fileno() for testing fileno()Ondrej Certik2013-03-071-2/+15
| | | | | | The new _supports_fileno() function works in all versions of Python. The problem was that in Python 2.x, the fileno() method of StringIO() is missing, while in Python 3.x, it is present, but raises an exception.
* BUG: fix issue with distutils.exec_command introduced in 1.7.0.Ralf Gommers2013-03-061-16/+26
| | | | | | | | Closes gh-2999 and gh-2915. There are several packages (nose, scipy.weave.inline, Sage inline Fortran) that replace stdout, in which case it doesn't have a fileno method. This method was attempted to be used (change in gh-2766 to fix a py3k issue).
* 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.
* Code cleanupGabriel2012-11-241-1/+1
|
* Assume we can use sys.stdout.fileno() and friends.Gabriel2012-11-231-7/+5
| | | | | | | | | | | The workaround shouldn't be necessary in a recent python shell. Tested in python, ipython. In fact, distutils is almost never imported and run manually from an interactive shell. This removes the use of `sys.__stdout__`, which broke with distribute 0.6.30 on Python 3.
* BUG/3K: distutils: do not assume that files output e.g. by gcc can be read ↵Pauli Virtanen2010-05-111-6/+8
| | | | in ascii codec
* Py3k: fix unixccompiler + exec_command exception/print stmts.David Cournapeau2009-12-031-9/+11
|
* Replace numpy.distutils.exec_command.splitcmdline with shlex.split instead.cookedm2007-12-261-55/+6
| | | | | | | | 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.
* exec_command.py: remove a version check for > Python 2.1cookedm2007-08-171-1/+1
|
* Fix an incorrect usage of log.set_verbosity(INFO) causing log always to be ↵Pearu Peterson2007-08-091-1/+1
| | | | at DEBUG level, INFO is for set_threshold.
* More fixes for building scipy with Mingw32 compilers.Pearu Peterson2007-07-251-1/+7
|
* (no commit message)Pearu Peterson2007-07-241-3/+2
|
* Better temporary file handling by using one temporary directory forcookedm2007-05-281-14/+15
| | | | numpy.distutils, and removing that at exit. Replaces using tempfile.mktemp.
* distutils: clean up imports (found by running pyflakes)cookedm2007-05-251-1/+0
|
* Add a numpy.distutils.log.good function, which when WARN messages would becookedm2007-05-251-1/+1
| | | | | logged, logs a "nice" anti-warn version. Use this for finding executables to report when we do actually find one.
* merge from distutils-revamp branch (step 1)cookedm2007-05-251-32/+20
|\ | | | | | | | | | | - minor cleanups - find_executable returns None when no file found (instead of having to check with os.path.isfile)
| * Branch numpy.distutils to distutils-revampcookedm2006-07-061-648/+0
|/
* Workaround strage tempfile problem.Pearu Peterson2006-04-031-3/+1
|
* Reorg. code so that numpy.distutils could be used from cwd that contains ↵Pearu Peterson2006-04-011-1/+3
| | | | math.py.
* Replace type(a) is (something) with appropiate is_string/is_sequence testscookedm2006-02-011-13/+15
|
* Misc cleanups + replace `a` with %r or repr(a)cookedm2006-01-311-9/+10
| | | | | Also replace some type checks with misc_util.is_sequence or misc_util.is_string or appropiate isinstance().
* Moved scipy directory to numpyTravis Oliphant2006-01-041-0/+645