diff options
author | Nathaniel J. Smith <njs@pobox.com> | 2013-05-22 11:49:26 +0100 |
---|---|---|
committer | Nathaniel J. Smith <njs@pobox.com> | 2013-05-22 11:49:26 +0100 |
commit | af306bf39e82e535fdb8982bab86c8a2600b8487 (patch) | |
tree | fa47fbdf88e9ab8e05f85e71c5b5bb468df9af3b /tools/osxbuild/install_and_test.py | |
parent | 074d3037cf4cb23e8ee825fc06ea1209daf53d1a (diff) | |
download | numpy-af306bf39e82e535fdb8982bab86c8a2600b8487.tar.gz |
MAINT: Remove tools/osxbuild
These scripts have been broken for years (build.py errors out
immediately if not running from an *svn* checkout), so I'm sure
no-one's using them, and they only attract pointless maintenance fixes
(py3 changes, keeping the pointless extra copy of the top-level
README.txt up to date as in #3288). Let's just remove them.
Diffstat (limited to 'tools/osxbuild/install_and_test.py')
-rw-r--r-- | tools/osxbuild/install_and_test.py | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/tools/osxbuild/install_and_test.py b/tools/osxbuild/install_and_test.py deleted file mode 100644 index 0243724d9..000000000 --- a/tools/osxbuild/install_and_test.py +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env python -"""Install the built package and run the tests. - -""" -from __future__ import division, print_function - -import os - -# FIXME: Should handle relative import better! -#from .build import DIST_DIR -from build import SRC_DIR, DIST_DIR, shellcmd - -clrgreen = '\033[0;32m' -clrnull = '\033[0m' -# print '\033[0;32m foobar \033[0m' -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 -pkg = None -filelist = os.listdir(distdir) -for fn in filelist: - if fn.endswith('mpkg'): - pkg = fn - break -if pkg is None: - raise IOError('Package is not found in directory %s' % distdir) - -pkgpath = os.path.abspath(os.path.join(SRC_DIR, DIST_DIR, pkg)) -color_print('Installing package: %s' % pkgpath) - -# Run the installer -print() -color_print('Installer requires admin rights, you will be prompted for sudo') -print() -cmd = 'sudo installer -verbose -package %s -target /' % pkgpath -#color_print(cmd) -shellcmd(cmd) - -# Null out the PYTHONPATH so we're sure to test the Installed version of numpy -os.environ['PYTHONPATH'] = '0' - -print() -color_print('Install successful!') -color_print('Running numpy test suite!') -print() -import numpy -numpy.test() |