summaryrefslogtreecommitdiff
path: root/tools/win32build
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-03-28 10:03:43 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-03-28 10:03:43 -0600
commit670b12649e34164514fc4981d8fbacfadf1f389e (patch)
tree25a21446ff6bdab5d95584aa6663c4f790797bb4 /tools/win32build
parent25ec6853e17e96448ce7d8f18eda2ef5290c2acf (diff)
downloadpython-numpy-670b12649e34164514fc4981d8fbacfadf1f389e.tar.gz
python-numpy-670b12649e34164514fc4981d8fbacfadf1f389e.tar.bz2
python-numpy-670b12649e34164514fc4981d8fbacfadf1f389e.zip
2to3: Add `from __future__ import ...` to some files that were missed.
With the exception of numpy/distutils/tests/test_exec_command.py, all of these files are script files in tools/osxbuild and tools/win32build. The import in the script files omits `absolute_import` as they are not part of a package.
Diffstat (limited to 'tools/win32build')
-rw-r--r--tools/win32build/build.py12
-rw-r--r--tools/win32build/doall.py2
-rw-r--r--tools/win32build/misc/x86analysis.py3
-rw-r--r--tools/win32build/prepare_bootstrap.py2
4 files changed, 14 insertions, 5 deletions
diff --git a/tools/win32build/build.py b/tools/win32build/build.py
index 4acb2e879..43d8a395d 100644
--- a/tools/win32build/build.py
+++ b/tools/win32build/build.py
@@ -1,11 +1,15 @@
"""Python script to build windows binaries to be fed to the "superpack".
The script is pretty dumb: it assumes python executables are installed the
-standard way, and the location for blas/lapack/atlas is harcoded."""
+standard way, and the location for blas/lapack/atlas is harcoded.
+
+TODO:
+ - integrate the x86analysis script to check built binaries
+ - make the config configurable with a file
+
+"""
+from __future__ import division
-# TODO:
-# - integrate the x86analysis script to check built binaries
-# - make the config configurable with a file
import sys
import subprocess
import os
diff --git a/tools/win32build/doall.py b/tools/win32build/doall.py
index eb07394ea..e9866122e 100644
--- a/tools/win32build/doall.py
+++ b/tools/win32build/doall.py
@@ -1,3 +1,5 @@
+from __future__ import division
+
import subprocess
import os
diff --git a/tools/win32build/misc/x86analysis.py b/tools/win32build/misc/x86analysis.py
index bccf0171c..e5eb886b4 100644
--- a/tools/win32build/misc/x86analysis.py
+++ b/tools/win32build/misc/x86analysis.py
@@ -5,6 +5,7 @@
# checking the assembly for instructions specific to sse, etc... Obviously,
# this won't work all the times (for example, if some instructions are used
# only after proper detection of the running CPU, this will give false alarm).
+from __future__ import division
import sys
import re
@@ -57,7 +58,7 @@ SSE2_SET = ["addpd", "addsd", "andnpd", "andpd", "clflush", "cmppd", "cmpsd",
"sqrtsd", "subpd", "subsd", "ucomisd", "unpckhpd", "unpcklpd", "xorpd"]
SSE3_SET = [ "addsubpd", "addsubps", "haddpd", "haddps", "hsubpd", "hsubps",
- "lddqu", "movddup", "movshdup", "movsldup", "fisttp"]
+ "lddqu", "movddup", "movshdup", "movsldup", "fisttp"]
def get_vendor_string():
"""Return the vendor string reading cpuinfo."""
diff --git a/tools/win32build/prepare_bootstrap.py b/tools/win32build/prepare_bootstrap.py
index f1d8edbfb..d5822b83e 100644
--- a/tools/win32build/prepare_bootstrap.py
+++ b/tools/win32build/prepare_bootstrap.py
@@ -1,3 +1,5 @@
+from __future__ import division
+
import os
import subprocess
import shutil