| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Was in numpy/distutils/exec_command.py.
Update 1.10-notes.rst.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
Add `print_function` to all `from __future__ import ...` statements
and use the python3 print function syntax everywhere.
Closes #3078.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
And enable a test for this that was failing before.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
in ascii codec
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
at DEBUG level, INFO is for set_threshold.
|
| |
|
| |
|
|
|
|
| |
numpy.distutils, and removing that at exit. Replaces using tempfile.mktemp.
|
| |
|
|
|
|
|
| |
logged, logs a "nice" anti-warn version. Use this for finding executables
to report when we do actually find one.
|
|\
| |
| |
| |
| |
| | |
- minor cleanups
- find_executable returns None when no file found (instead of having to
check with os.path.isfile)
|
|/ |
|
| |
|
|
|
|
| |
math.py.
|
| |
|
|
|
|
|
| |
Also replace some type checks with misc_util.is_sequence or misc_util.is_string
or appropiate isinstance().
|
|
|