summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarrod Millman <millman@berkeley.edu>2008-09-02 20:32:38 +0000
committerJarrod Millman <millman@berkeley.edu>2008-09-02 20:32:38 +0000
commitd29107a248130bbb68ecac58d6720d716529141c (patch)
tree9e1408025c80d63fe9fa6151343a7b265ec3f654
parenta4a7966cf7191c28a7054127fd3717d6c760d556 (diff)
downloadnumpy-d29107a248130bbb68ecac58d6720d716529141c.tar.gz
reindenting prior to release
-rw-r--r--doc/numpybook/comparison/ctypes/filter.py3
-rw-r--r--doc/numpybook/comparison/ctypes/interface.py7
-rw-r--r--doc/numpybook/comparison/pyrex/setup.py4
-rw-r--r--doc/numpybook/comparison/timing.py18
-rw-r--r--doc/numpybook/comparison/weave/filter.py11
-rw-r--r--doc/numpybook/comparison/weave/inline.py10
-rw-r--r--doc/numpybook/runcode.py16
-rw-r--r--numpy/core/code_generators/generate_umath.py8
-rw-r--r--numpy/core/memmap.py2
-rw-r--r--numpy/distutils/command/scons.py10
-rw-r--r--numpy/doc/subclassing.py82
-rw-r--r--numpy/lib/_datasource.py4
-rw-r--r--numpy/lib/scimath.py6
-rw-r--r--numpy/lib/tests/test_format.py6
-rw-r--r--numpy/lib/ufunclike.py4
-rw-r--r--numpy/ma/core.py6
-rw-r--r--numpy/testing/nosetester.py2
-rw-r--r--numpy/testing/parametric.py4
-rw-r--r--tools/osxbuild/build.py8
-rw-r--r--tools/osxbuild/install_and_test.py2
-rw-r--r--tools/win32build/build.py4
-rw-r--r--tools/win32build/prepare_bootstrap.py2
22 files changed, 105 insertions, 114 deletions
diff --git a/doc/numpybook/comparison/ctypes/filter.py b/doc/numpybook/comparison/ctypes/filter.py
index e92aa5eab..1b322aca3 100644
--- a/doc/numpybook/comparison/ctypes/filter.py
+++ b/doc/numpybook/comparison/ctypes/filter.py
@@ -21,6 +21,3 @@ def filter2d(a):
b = N.zeros_like(a)
lib.dfilter2d(a, b, a.ctypes.strides, a.ctypes.shape)
return b
-
-
-
diff --git a/doc/numpybook/comparison/ctypes/interface.py b/doc/numpybook/comparison/ctypes/interface.py
index 06c12aef3..e237f8ded 100644
--- a/doc/numpybook/comparison/ctypes/interface.py
+++ b/doc/numpybook/comparison/ctypes/interface.py
@@ -27,7 +27,7 @@ lib.dfilter2d.argtypes = [N.ctypeslib.ndpointer(float, ndim=2,
flags='aligned, contiguous,'\
'writeable'),
ctypes.POINTER(N.ctypeslib.c_intp),
- ctypes.POINTER(N.ctypeslib.c_intp)]
+ ctypes.POINTER(N.ctypeslib.c_intp)]
def select(dtype):
if dtype.char in ['?bBhHf']:
@@ -49,12 +49,9 @@ def add(a, b):
c = N.empty_like(a)
func(a,b,c,a.size)
return c
-
+
def filter2d(a):
a = N.require(a, float, ['ALIGNED'])
b = N.zeros_like(a)
lib.dfilter2d(a, b, a.ctypes.strides, a.ctypes.shape)
return b
-
-
-
diff --git a/doc/numpybook/comparison/pyrex/setup.py b/doc/numpybook/comparison/pyrex/setup.py
index 64cf12bc8..695639d9e 100644
--- a/doc/numpybook/comparison/pyrex/setup.py
+++ b/doc/numpybook/comparison/pyrex/setup.py
@@ -16,8 +16,8 @@ pyx_ext = Extension('add',
include_dirs = [numpy.get_include()])
pyx_ext2 = Extension('blur',
- ['blur.pyx'],
- include_dirs = [numpy.get_include()])
+ ['blur.pyx'],
+ include_dirs = [numpy.get_include()])
# Call the routine which does the real work
diff --git a/doc/numpybook/comparison/timing.py b/doc/numpybook/comparison/timing.py
index 14841d7cb..92f6a50d2 100644
--- a/doc/numpybook/comparison/timing.py
+++ b/doc/numpybook/comparison/timing.py
@@ -51,13 +51,11 @@ import sys
path = sys.path
for kind in ['f2py']:#['ctypes', 'pyrex', 'weave', 'f2py']:
- res[kind] = []
- sys.path = ['/Users/oliphant/numpybook/%s' % (kind,)] + path
- print sys.path
- for n in N:
- print "%s - %d" % (kind, n)
- t = timeit.Timer(eval('%s_run'%kind), eval('%s_pre %% (%d,%d)'%(kind,n,n)))
- mytime = min(t.repeat(3,100))
- res[kind].append(mytime)
-
-
+ res[kind] = []
+ sys.path = ['/Users/oliphant/numpybook/%s' % (kind,)] + path
+ print sys.path
+ for n in N:
+ print "%s - %d" % (kind, n)
+ t = timeit.Timer(eval('%s_run'%kind), eval('%s_pre %% (%d,%d)'%(kind,n,n)))
+ mytime = min(t.repeat(3,100))
+ res[kind].append(mytime)
diff --git a/doc/numpybook/comparison/weave/filter.py b/doc/numpybook/comparison/weave/filter.py
index b2fdb277e..6fc16c79f 100644
--- a/doc/numpybook/comparison/weave/filter.py
+++ b/doc/numpybook/comparison/weave/filter.py
@@ -8,11 +8,11 @@ def filter(a):
for(i=1;i<Na[0]-1;i++) {
for(j=1;j<Na[1]-1;j++) {
B2(i,j) = A2(i,j) + (A2(i-1,j) +
- A2(i+1,j) + A2(i,j-1)
- + A2(i,j+1))*0.5
- + (A2(i-1,j-1)
- + A2(i-1,j+1)
- + A2(i+1,j-1)
+ A2(i+1,j) + A2(i,j-1)
+ + A2(i,j+1))*0.5
+ + (A2(i-1,j-1)
+ + A2(i-1,j+1)
+ + A2(i+1,j-1)
+ A2(i+1,j+1))*0.25;
}
}
@@ -20,4 +20,3 @@ def filter(a):
b = zeros_like(a)
weave.inline(code,['a','b'])
return b
-
diff --git a/doc/numpybook/comparison/weave/inline.py b/doc/numpybook/comparison/weave/inline.py
index 31499213e..bfac588aa 100644
--- a/doc/numpybook/comparison/weave/inline.py
+++ b/doc/numpybook/comparison/weave/inline.py
@@ -24,11 +24,11 @@ def arr(a):
for(i=1;i<Na[0]-1;i++) {
for(j=1;j<Na[1]-1;j++) {
B2(i,j) = A2(i,j) + A2(i-1,j)*0.5 +
- A2(i+1,j)*0.5 + A2(i,j-1)*0.5
- + A2(i,j+1)*0.5
- + A2(i-1,j-1)*0.25
- + A2(i-1,j+1)*0.25
- + A2(i+1,j-1)*0.25
+ A2(i+1,j)*0.5 + A2(i,j-1)*0.5
+ + A2(i,j+1)*0.5
+ + A2(i-1,j-1)*0.25
+ + A2(i-1,j+1)*0.25
+ + A2(i+1,j-1)*0.25
+ A2(i+1,j+1)*0.25;
}
}
diff --git a/doc/numpybook/runcode.py b/doc/numpybook/runcode.py
index a0b82340b..7e696c9b3 100644
--- a/doc/numpybook/runcode.py
+++ b/doc/numpybook/runcode.py
@@ -11,7 +11,7 @@
#
# Options:
# -n name of code section (default MyCode)
-#
+#
import sys
import optparse
@@ -23,13 +23,13 @@ newre = re.compile(r"\\begin_inset Note.*PYNEW\s+\\end_inset", re.DOTALL)
def getoutput(tstr, dic):
print "\n\nRunning..."
- print tstr,
+ print tstr,
tempstr = cStringIO.StringIO()
sys.stdout = tempstr
code = compile(tstr, '<input>', 'exec')
try:
res = eval(tstr, dic)
- sys.stdout = sys.__stdout__
+ sys.stdout = sys.__stdout__
except SyntaxError:
try:
res = None
@@ -42,7 +42,7 @@ def getoutput(tstr, dic):
res = tempstr.getvalue() + '\n' + repr(res)
if res != '':
print "\nOutput is"
- print res,
+ print res,
return res
# now find the code in the code segment
@@ -75,7 +75,7 @@ def getnewcodestr(substr, dic):
if line != 'dummy':
outlines.append(line)
return "\n\\newline \n".join(outlines), end
-
+
def runpycode(lyxstr, name='MyCode'):
schobj = re.compile(r"\\layout %s\s+>>> " % name)
@@ -85,7 +85,7 @@ def runpycode(lyxstr, name='MyCode'):
for it in schobj.finditer(lyxstr):
indx.extend([it.start(), it.end()])
num += 1
-
+
if num == 0:
print "Nothing found for %s" % name
return lyxstr
@@ -103,14 +103,14 @@ def runpycode(lyxstr, name='MyCode'):
for k in range(num):
# first write everything up to the start of the code segment
substr = lyxstr[start:indx[2*k]]
- outstr.write(substr)
+ outstr.write(substr)
if start > 0:
mat = newre.search(substr)
# if PYNEW found, then start a new namespace
if mat:
edic = {}
exec 'from numpy import *' in edic
- exec 'set_printoptions(linewidth=65)' in edic
+ exec 'set_printoptions(linewidth=65)' in edic
# now find the code in the code segment
# endoutput will contain the index just past any output
# already present in the lyx string.
diff --git a/numpy/core/code_generators/generate_umath.py b/numpy/core/code_generators/generate_umath.py
index ba57d53e0..d831ceda9 100644
--- a/numpy/core/code_generators/generate_umath.py
+++ b/numpy/core/code_generators/generate_umath.py
@@ -673,10 +673,10 @@ def make_ufuncs(funcdict):
mlist = []
docstring = textwrap.dedent(uf.docstring).strip()
docstring = docstring.encode('string-escape').replace(r'"', r'\"')
- # Split the docstring because some compilers (like MS) do not like big
- # string literal in C code. We split at endlines because textwrap.wrap
- # do not play well with \n
- docstring = '\\n\"\"'.join(docstring.split(r"\n"))
+ # Split the docstring because some compilers (like MS) do not like big
+ # string literal in C code. We split at endlines because textwrap.wrap
+ # do not play well with \n
+ docstring = '\\n\"\"'.join(docstring.split(r"\n"))
mlist.append(\
r"""f = PyUFunc_FromFuncAndData(%s_functions, %s_data, %s_signatures, %d,
%d, %d, %s, "%s",
diff --git a/numpy/core/memmap.py b/numpy/core/memmap.py
index dd09b8e28..5bc314efc 100644
--- a/numpy/core/memmap.py
+++ b/numpy/core/memmap.py
@@ -74,7 +74,7 @@ class memmap(ndarray):
Given a memmap ``fp``, ``isinstance(fp, numpy.ndarray)`` returns
``True``.
- Notes
+ Notes
-----
Memory-mapped arrays use the the Python memory-map object which
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py
index e183f001b..d0792be5d 100644
--- a/numpy/distutils/command/scons.py
+++ b/numpy/distutils/command/scons.py
@@ -287,11 +287,11 @@ class scons(old_build_ext):
self.post_hooks = []
self.pkg_names = []
- # To avoid trouble, just don't do anything if no sconscripts are used.
- # This is useful when for example f2py uses numpy.distutils, because
- # f2py does not pass compiler information to scons command, and the
- # compilation setup below can crash in some situation.
- if len(self.sconscripts) > 0:
+ # To avoid trouble, just don't do anything if no sconscripts are used.
+ # This is useful when for example f2py uses numpy.distutils, because
+ # f2py does not pass compiler information to scons command, and the
+ # compilation setup below can crash in some situation.
+ if len(self.sconscripts) > 0:
# Try to get the same compiler than the ones used by distutils: this is
# non trivial because distutils and scons have totally different
# conventions on this one (distutils uses PATH from user's environment,
diff --git a/numpy/doc/subclassing.py b/numpy/doc/subclassing.py
index f23cf6652..859ab32f9 100644
--- a/numpy/doc/subclassing.py
+++ b/numpy/doc/subclassing.py
@@ -7,7 +7,7 @@ Credits
-------
This page is based with thanks on the wiki page on subclassing by Pierre
-Gerard-Marchant - http://www.scipy.org/Subclasses.
+Gerard-Marchant - http://www.scipy.org/Subclasses.
Introduction
------------
@@ -40,21 +40,21 @@ this machinery that makes subclassing slightly non-standard.
To allow subclassing, and views of subclasses, ndarray uses the
ndarray ``__new__`` method for the main work of object initialization,
-rather then the more usual ``__init__`` method.
+rather then the more usual ``__init__`` method.
``__new__`` and ``__init__``
============================
``__new__`` is a standard python method, and, if present, is called
before ``__init__`` when we create a class instance. Consider the
-following::
+following::
class C(object):
def __new__(cls, *args):
- print 'Args in __new__:', args
- return object.__new__(cls, *args)
+ print 'Args in __new__:', args
+ return object.__new__(cls, *args)
def __init__(self, *args):
- print 'Args in __init__:', args
+ print 'Args in __init__:', args
C('hello')
@@ -75,7 +75,7 @@ following.
As you can see, the object can be initialized in the ``__new__``
method or the ``__init__`` method, or both, and in fact ndarray does
not have an ``__init__`` method, because all the initialization is
-done in the ``__new__`` method.
+done in the ``__new__`` method.
Why use ``__new__`` rather than just the usual ``__init__``? Because
in some cases, as for ndarray, we want to be able to return an object
@@ -83,21 +83,21 @@ of some other class. Consider the following::
class C(object):
def __new__(cls, *args):
- print 'cls is:', cls
- print 'Args in __new__:', args
- return object.__new__(cls, *args)
+ print 'cls is:', cls
+ print 'Args in __new__:', args
+ return object.__new__(cls, *args)
def __init__(self, *args):
- print 'self is :', self
- print 'Args in __init__:', args
+ print 'self is :', self
+ print 'Args in __init__:', args
class D(C):
def __new__(cls, *args):
- print 'D cls is:', cls
- print 'D args in __new__:', args
- return C.__new__(C, *args)
+ print 'D cls is:', cls
+ print 'D args in __new__:', args
+ return C.__new__(C, *args)
def __init__(self, *args):
- print 'D self is :', self
- print 'D args in __init__:', args
+ print 'D self is :', self
+ print 'D args in __init__:', args
D('hello')
@@ -131,7 +131,7 @@ this way, in its standard methods for taking views, but the ndarray
``__new__`` method knows nothing of what we have done in our own
``__new__`` method in order to set attributes, and so on. (Aside -
why not call ``obj = subdtype.__new__(...`` then? Because we may not
-have a ``__new__`` method with the same call signature).
+have a ``__new__`` method with the same call signature).
So, when creating a new view object of our subclass, we need to be
able to set any extra attributes from the original object of our
@@ -153,21 +153,21 @@ Simple example - adding an extra attribute to ndarray
class InfoArray(np.ndarray):
def __new__(subtype, shape, dtype=float, buffer=None, offset=0,
- strides=None, order=None, info=None):
- # Create the ndarray instance of our type, given the usual
- # input arguments. This will call the standard ndarray
- # constructor, but return an object of our type
- obj = np.ndarray.__new__(subtype, shape, dtype, buffer, offset, strides,
- order)
- # add the new attribute to the created instance
- obj.info = info
- # Finally, we must return the newly created object:
- return obj
+ strides=None, order=None, info=None):
+ # Create the ndarray instance of our type, given the usual
+ # input arguments. This will call the standard ndarray
+ # constructor, but return an object of our type
+ obj = np.ndarray.__new__(subtype, shape, dtype, buffer, offset, strides,
+ order)
+ # add the new attribute to the created instance
+ obj.info = info
+ # Finally, we must return the newly created object:
+ return obj
def __array_finalize__(self,obj):
- # reset the attribute from passed original object
- self.info = getattr(obj, 'info', None)
- # We do not need to return anything
+ # reset the attribute from passed original object
+ self.info = getattr(obj, 'info', None)
+ # We do not need to return anything
obj = InfoArray(shape=(3,), info='information')
print type(obj)
@@ -200,18 +200,18 @@ extra attribute::
class RealisticInfoArray(np.ndarray):
def __new__(cls, input_array, info=None):
- # Input array is an already formed ndarray instance
- # We first cast to be our class type
- obj = np.asarray(input_array).view(cls)
- # add the new attribute to the created instance
- obj.info = info
- # Finally, we must return the newly created object:
- return obj
+ # Input array is an already formed ndarray instance
+ # We first cast to be our class type
+ obj = np.asarray(input_array).view(cls)
+ # add the new attribute to the created instance
+ obj.info = info
+ # Finally, we must return the newly created object:
+ return obj
def __array_finalize__(self,obj):
- # reset the attribute from passed original object
- self.info = getattr(obj, 'info', None)
- # We do not need to return anything
+ # reset the attribute from passed original object
+ self.info = getattr(obj, 'info', None)
+ # We do not need to return anything
arr = np.arange(5)
obj = RealisticInfoArray(arr, info='information')
diff --git a/numpy/lib/_datasource.py b/numpy/lib/_datasource.py
index 3055bf47a..7e760b416 100644
--- a/numpy/lib/_datasource.py
+++ b/numpy/lib/_datasource.py
@@ -38,7 +38,7 @@ import os
from shutil import rmtree
# Using a class instead of a module-level dictionary
-# to reduce the inital 'import numpy' overhead by
+# to reduce the inital 'import numpy' overhead by
# deferring the import of bz2 and gzip until needed
# TODO: .zip support, .tar support?
@@ -197,7 +197,7 @@ class DataSource (object):
def _isurl(self, path):
"""Test if path is a net location. Tests the scheme and netloc."""
-
+
# We do this here to reduce the 'import numpy' initial import time.
from urlparse import urlparse
diff --git a/numpy/lib/scimath.py b/numpy/lib/scimath.py
index ed04d1ce5..0d765fa20 100644
--- a/numpy/lib/scimath.py
+++ b/numpy/lib/scimath.py
@@ -198,15 +198,15 @@ def sqrt(x):
As the numpy.sqrt, this returns the principal square root of x, which is
what most people mean when they use square root; the principal square root
- of x is not any number z such as z^2 = x.
+ of x is not any number z such as z^2 = x.
For positive numbers, the principal square root is defined as the positive
- number z such as z^2 = x.
+ number z such as z^2 = x.
The principal square root of -1 is i, the principal square root of any
negative number -x is defined a i * sqrt(x). For any non zero complex
number, it is defined by using the following branch cut: x = r e^(i t) with
- r > 0 and -pi < t <= pi. The principal square root is then
+ r > 0 and -pi < t <= pi. The principal square root is then
sqrt(r) e^(i t/2).
"""
x = _fix_real_lt_zero(x)
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py
index 073af3dac..35558400f 100644
--- a/numpy/lib/tests/test_format.py
+++ b/numpy/lib/tests/test_format.py
@@ -434,13 +434,13 @@ def test_memmap_roundtrip():
format.write_array(fp, arr)
finally:
fp.close()
-
+
fortran_order = (arr.flags.f_contiguous and not arr.flags.c_contiguous)
ma = format.open_memmap(mfn, mode='w+', dtype=arr.dtype,
shape=arr.shape, fortran_order=fortran_order)
ma[...] = arr
del ma
-
+
# Check that both of these files' contents are the same.
fp = open(nfn, 'rb')
normal_bytes = fp.read()
@@ -449,7 +449,7 @@ def test_memmap_roundtrip():
memmap_bytes = fp.read()
fp.close()
yield assert_equal, normal_bytes, memmap_bytes
-
+
# Check that reading the file using memmap works.
ma = format.open_memmap(nfn, mode='r')
#yield assert_array_equal, ma, arr
diff --git a/numpy/lib/ufunclike.py b/numpy/lib/ufunclike.py
index 5abdc9c8b..6df529609 100644
--- a/numpy/lib/ufunclike.py
+++ b/numpy/lib/ufunclike.py
@@ -10,12 +10,12 @@ def fix(x, y=None):
""" Round x to nearest integer towards zero.
"""
x = nx.asanyarray(x)
- if y is None:
+ if y is None:
y = nx.zeros_like(x)
y1 = nx.floor(x)
y2 = nx.ceil(x)
y[...] = nx.where(x >= 0, y1, y2)
- return y
+ return y
def isposinf(x, y=None):
"""
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index efda5ee85..b2692c94d 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -86,7 +86,7 @@ def doc_note(initialdoc, note):
return
newdoc = """
%s
-
+
Notes
-----
%s
@@ -896,7 +896,7 @@ def masked_where(condition, a, copy=True):
"""
cond = make_mask(condition)
a = np.array(a, copy=copy, subok=True)
-
+
(cshape, ashape) = (cond.shape, a.shape)
if cshape and cshape != ashape:
raise IndexError("Inconsistant shape between the condition and the input"\
@@ -3865,7 +3865,7 @@ def inner(a, b):
if len(fb.shape) == 0:
fb.shape = (1,)
return np.inner(fa, fb).view(MaskedArray)
-inner.__doc__ = doc_note(np.inner.__doc__,
+inner.__doc__ = doc_note(np.inner.__doc__,
"Masked values are replaced by 0.")
innerproduct = inner
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index d4e523c52..ae3a56094 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -164,7 +164,7 @@ class NoseTester(object):
pyversion = sys.version.replace('\n','')
print "Python version %s" % pyversion
print "nose version %d.%d.%d" % nose.__versioninfo__
-
+
def test(self, label='fast', verbose=1, extra_argv=None, doctests=False,
coverage=False, **kwargs):
diff --git a/numpy/testing/parametric.py b/numpy/testing/parametric.py
index e6f2b3390..27b9d23c6 100644
--- a/numpy/testing/parametric.py
+++ b/numpy/testing/parametric.py
@@ -61,9 +61,9 @@ class _ParametricTestCase(unittest.TestCase):
_shareParTestPrefix = 'testsp'
def __init__(self, methodName = 'runTest'):
- warnings.warn("ParametricTestCase will be removed in the next NumPy "
+ warnings.warn("ParametricTestCase will be removed in the next NumPy "
"release", DeprecationWarning)
- unittest.TestCase.__init__(self, methodName)
+ unittest.TestCase.__init__(self, methodName)
def exec_test(self,test,args,result):
"""Execute a single test. Returns a success boolean"""
diff --git a/tools/osxbuild/build.py b/tools/osxbuild/build.py
index d0e8ecfa1..4c9b8f64c 100644
--- a/tools/osxbuild/build.py
+++ b/tools/osxbuild/build.py
@@ -36,7 +36,7 @@ def remove_dirs():
cmd = 'sudo chown -R %s %s' % (getuser(), DIST_DIR)
shellcmd(cmd)
shutil.rmtree(DIST_DIR)
-
+
def build_dist():
print 'Building distribution... (using sudo)'
cmd = 'sudo python setupegg.py bdist_mpkg'
@@ -67,7 +67,7 @@ def revert_readme():
print 'Reverting README.txt...'
cmd = 'svn revert %s' % DEV_README
shellcmd(cmd)
-
+
def shellcmd(cmd, verbose=True):
"""Call a shell command."""
if verbose:
@@ -80,7 +80,7 @@ def shellcmd(cmd, verbose=True):
%s
""" % str(err)
raise Exception(msg)
-
+
def build():
# update end-user documentation
copy_readme()
@@ -99,6 +99,6 @@ def build():
os.chdir(cwd)
# restore developer documentation
revert_readme()
-
+
if __name__ == '__main__':
build()
diff --git a/tools/osxbuild/install_and_test.py b/tools/osxbuild/install_and_test.py
index f03e5bd7c..346b45adb 100644
--- a/tools/osxbuild/install_and_test.py
+++ b/tools/osxbuild/install_and_test.py
@@ -14,7 +14,7 @@ def color_print(msg):
"""Add color to this print output."""
clrmsg = clrgreen + msg + clrnull
print clrmsg
-
+
distdir = os.path.join(SRC_DIR, DIST_DIR)
# Find the package and build abspath to it
diff --git a/tools/win32build/build.py b/tools/win32build/build.py
index 29690fea4..63b62482b 100644
--- a/tools/win32build/build.py
+++ b/tools/win32build/build.py
@@ -80,7 +80,7 @@ def move_binary(arch, pyver):
if not os.path.exists("binaries"):
os.makedirs("binaries")
- shutil.move(os.path.join('dist', get_windist_exec(pyver)),
+ shutil.move(os.path.join('dist', get_windist_exec(pyver)),
os.path.join("binaries", get_binary_name(arch)))
def get_numpy_version():
@@ -110,7 +110,7 @@ def get_windist_exec(pyver):
if __name__ == '__main__':
from optparse import OptionParser
parser = OptionParser()
- parser.add_option("-a", "--arch", dest="arch",
+ parser.add_option("-a", "--arch", dest="arch",
help = "Architecture to build (sse2, sse3, nosse, etc...)")
parser.add_option("-p", "--pyver", dest="pyver",
help = "Python version (2.4, 2.5, etc...)")
diff --git a/tools/win32build/prepare_bootstrap.py b/tools/win32build/prepare_bootstrap.py
index 814ceeda4..73d1a4b61 100644
--- a/tools/win32build/prepare_bootstrap.py
+++ b/tools/win32build/prepare_bootstrap.py
@@ -79,7 +79,7 @@ def get_numpy_version(chdir = pjoin('..', '..')):
version = subprocess.Popen(['python', '-c', 'import __builtin__; __builtin__.__NUMPY_SETUP__ = True; from numpy.version import version;print version'], stdout = subprocess.PIPE).communicate()[0]
version = version.strip()
if 'dev' in version:
- out = subprocess.Popen(['svn', 'info'], stdout = subprocess.PIPE).communicate()[0]
+ out = subprocess.Popen(['svn', 'info'], stdout = subprocess.PIPE).communicate()[0]
r = re.compile('Revision: ([0-9]+)')
svnver = None
for line in out.split('\n'):