summaryrefslogtreecommitdiff
path: root/tools
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 /tools
parenta4a7966cf7191c28a7054127fd3717d6c760d556 (diff)
downloadnumpy-d29107a248130bbb68ecac58d6720d716529141c.tar.gz
reindenting prior to release
Diffstat (limited to 'tools')
-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
4 files changed, 8 insertions, 8 deletions
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'):