# 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 scipy os.environ['PYTHONPATH'] = '0' print("") color_print('Install successful!') color_print('Running scipy test suite!') print("") import scipy scipy.test()
# 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()