summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorRoland Kaufmann <rka081+numpy@uib.no>2017-06-21 11:37:00 +0200
committerRoland Kaufmann <rka081+numpy@uib.no>2017-06-22 23:23:35 +0200
commit6c9dece14f90d972ca83ae0cfb879c3f74a7bf1f (patch)
tree072b96515a0969b0ef90becabffab5863c332cc9 /numpy/core/fromnumeric.py
parentcfb909f35de8ad238066eb176bc408d86f15c9c8 (diff)
downloadnumpy-6c9dece14f90d972ca83ae0cfb879c3f74a7bf1f.tar.gz
BUG: Make extensions compilable with MinGW on Py2.7
The original changeset 1c8ecc7 to make extensions compilable with MinGW used the base_prefix attribute unconditionally. However, this is not available in versions before Python 3.3. This changeset introduces a check for whether the attribute is available so that the code will work without errors also on Python 2.7. However, this may lead to surprising results when compiling in a virtualenv. Hat tip to Diorcet Yann (@diorcety) for pointing out this problem.
Diffstat (limited to 'numpy/core/fromnumeric.py')
0 files changed, 0 insertions, 0 deletions