def setupHelp(self, help): import nargs help.addArgument( 'BLAS/LAPACK', '-with-blas-lapack-dir=<dir>', nargs.ArgDir( None, None, 'Indicate the directory containing BLAS and LAPACK libraries')) help.addArgument( 'BLAS/LAPACK', '-with-blas-lapack-lib=<libraries: e.g. [/Users/..../liblapack.a,libblas.a,...]>', nargs.ArgLibrary( None, None, 'Indicate the library containing BLAS and LAPACK')) help.addArgument( 'BLAS/LAPACK', '-with-blas-lib=<libraries: e.g. [/Users/..../libblas.a,...]>', nargs.ArgLibrary(None, None, 'Indicate the library(s) containing BLAS')) help.addArgument( 'BLAS/LAPACK', '-with-lapack-lib=<libraries: e.g. [/Users/..../liblapack.a,...]>', nargs.ArgLibrary(None, None, 'Indicate the library(s) containing LAPACK')) help.addArgument( 'BLAS/LAPACK', '-download-c-blas-lapack=<no,yes,ifneeded,filename>', nargs.ArgDownload( None, 0, 'Automatically install a C version of BLAS/LAPACK')) help.addArgument( 'BLAS/LAPACK', '-download-f-blas-lapack=<no,yes,ifneeded,filename>', nargs.ArgDownload( None, 0, 'Automatically install a Fortran version of BLAS/LAPACK')) return
def setupHelp(self, help): import nargs help = script.Script.setupHelp(self, help) help.addArgument( 'RepManager', '-rootDir', nargs.ArgDir(None, os.environ['PETSC_DIR'], 'The root directory for this build', isTemporary=1)) help.addArgument( 'RepManager', '-dryRun', nargs.ArgBool(None, False, 'Only output what would be run', isTemporary=1)) help.addArgument( 'RepManager', '-skipXCode', nargs.ArgBool( None, False, 'Do not run XCode application/files have not been added/removed', isTemporary=1)) help.addArgument( 'RepManager', '-verbose', nargs.ArgInt(None, 0, 'The verbosity level', min=0, isTemporary=1)) return help
def setupHelp(self, help): import nargs help.addArgument( 'ASE', '-ase-dir', nargs.ArgDir(None, None, 'Specify the ASE Runtime directory')) return
def setupHelp(self, help): '''This method should be overidden to provide help for arguments''' import nargs help.addArgument('Script', '-h', nargs.ArgBool(None, 0, 'Print this help message', isTemporary=1), ignoreDuplicates=1) help.addArgument('Script', '-help', nargs.ArgBool(None, 0, 'Print this help message', isTemporary=1), ignoreDuplicates=1) help.addArgument( 'Script', '-with-packages-download-dir=<dir>', nargs.ArgDir( None, None, 'Skip network download of package tarballs and locate them in specified dir. If not found in dir, print package URL - so it can be obtained manually.', isTemporary=1), ignoreDuplicates=1) return help
def setupHelp(self, help): import nargs help.addArgument( 'BLAS/LAPACK', '-with-blas-lapack-dir=<dir>', nargs.ArgDir( None, None, 'Indicate the directory containing BLAS and LAPACK libraries')) help.addArgument( 'BLAS/LAPACK', '-with-blas-lapack-lib=<libraries: e.g. [/Users/..../liblapack.a,libblas.a,...]>', nargs.ArgLibrary( None, None, 'Indicate the library containing BLAS and LAPACK')) help.addArgument( 'BLAS/LAPACK', '-with-blas-lib=<libraries: e.g. [/Users/..../libblas.a,...]>', nargs.ArgLibrary(None, None, 'Indicate the library(s) containing BLAS')) help.addArgument( 'BLAS/LAPACK', '-with-lapack-lib=<libraries: e.g. [/Users/..../liblapack.a,...]>', nargs.ArgLibrary(None, None, 'Indicate the library(s) containing LAPACK')) help.addArgument( 'BLAS/LAPACK', '-with-blas-lapack-suffix=<string>', nargs.ArgLibrary( None, None, 'Indicate a suffix for BLAS/LAPACK subroutine names.')) help.addArgument( 'BLAS/LAPACK', '-known-64-bit-blas-indices=<bool>', nargs.ArgBool(None, 0, 'Indicate if using 64 bit integer BLAS')) return
def setupHelp(self, help): '''This method should be overidden to provide help for arguments''' import nargs help.addArgument('Script', '-help', nargs.ArgBool(None, 0, 'Print this help message', isTemporary=1), ignoreDuplicates=1) help.addArgument( 'Script', '-with-packages-dir', nargs.ArgDir( None, None, 'Directory to store downloaded external package tarballs', isTemporary=1), ignoreDuplicates=1) help.addArgument('Script', '-h', nargs.ArgBool(None, 0, 'Print this help message', isTemporary=1), ignoreDuplicates=1) return help
def setupHelp(self, help): import nargs help.addArgument('MATLAB', '-with-matlab=<bool>', nargs.ArgBool(None, 0, 'Activate Matlab')) help.addArgument('MATLAB', '-with-matlab-socket=<bool>', nargs.ArgBool(None, 1, 'Build socket code for Matlab')) help.addArgument('MATLAB', '-with-matlab-dir=<root dir>', nargs.ArgDir(None, None, 'Specify the root directory of the Matlab installation')) help.addArgument('MATLAB', '-with-matlab-arch=<string>', nargs.ArgString(None, None, 'Use Matlab Architecture (default use first-found)')) return
def setupHelp(self, help): import nargs help = script.Script.setupHelp(self, help) help.addArgument('RepManager', '-rootDir', nargs.ArgDir(None, os.environ['PETSC_DIR'], 'The root directory for this build', isTemporary = 1)) help.addArgument('RepManager', '-dryRun', nargs.ArgBool(None, False, 'Only output what would be run', isTemporary = 1)) help.addArgument('RepManager', '-verbose', nargs.ArgInt(None, 1, 'The verbosity level', min = 0, isTemporary = 1)) return help
def checkTmpDir(self, tmpDir): '''Check that the temporary direcotry exists and has sufficient space available''' if not os.path.exists(tmpDir): del self.argDB['TMPDIR'] self.argDB.setType('TMPDIR', nargs.ArgDir(None, None, 'Temporary directory '+tmpDir+' does not exist. Select another directory')) newTmp = self.argDB['TMPDIR'] return 0 try: stats = os.statvfs(tmpDir) freeSpace = stats.f_bavail*stats.f_frsize if freeSpace < 50*1024*1024: del self.argDB['TMPDIR'] self.argDB.setType('TMPDIR', nargs.ArgDir(None, None,'Insufficient space ('+str(freeSpace/1024)+'K) on '+tmpDir+'. Select another directory')) newTmp = self.argDB['TMPDIR'] return 0 except: pass return 1
def setupHelp(self, help): import nargs help = Make.setupHelp(self, help) help.addArgument( 'basicMake', 'libdir', nargs.ArgDir(None, 'lib', 'Root for installation of libraries', mustExist=0, isTemporary=1)) help.addArgument( 'basicMake', 'bindir', nargs.ArgDir(None, 'bin', 'Root for installation of executables', mustExist=0, isTemporary=1)) return help
def setupHelp(self, help): import nargs help.addArgument('PETSc', '-with-petsc=<bool>', nargs.ArgBool(None, 1, 'Activate PETSc')) # Location options help.addArgument('PETSc', '-with-petsc-dir=<root dir>', nargs.ArgDir(None, None, 'Specify the root directory of the PETSc installation')) help.addArgument('PETSc', '-with-petsc-arch=<arch>', nargs.Arg(None, None, 'Specify PETSC_ARCH')) # Construction options help.addArgument('PETSc', '-download-petsc=<bool>', nargs.ArgBool(None, 0, 'Install PETSc')) # Testing options help.addArgument('PETSc', '-with-petsc-shared=<bool>', nargs.ArgBool(None, 1, 'Require that the PETSc library be shared')) return
def setupHelp(self, help): import nargs help = script.Script.setupHelp(self, help) help.addArgument( 'Make', 'forceConfigure', nargs.ArgBool(None, 0, 'Force a reconfiguration', isTemporary=1)) help.addArgument('Make', 'ignoreCompileOutput', nargs.ArgBool(None, 0, 'Ignore compiler output')) help.addArgument( 'Make', 'baseDirectory', nargs.ArgDir(None, '../..', 'Directory root for all packages', isTemporary=1)) help.addArgument( 'Make', 'prefix', nargs.ArgDir(None, None, 'Root for installation of libraries and binaries', mustExist=0, isTemporary=1)) return help
def setupHelp(self, help): import nargs PETSc.package.NewPackage.setupHelp(self, help) help.addArgument('X11', '-with-x=<bool>', nargs.ArgBool(None, 1, 'Activate X11')) help.addArgument( 'X11', '-with-x-include=<include dir>', nargs.ArgDir(None, None, 'Specify an include directory for X11')) help.addArgument( 'X11', '-with-x-lib=<libraries: e.g. [/Users/..../libX11.a,...]>', nargs.ArgLibrary(None, None, 'Specify X11 library file')) help.addArgument('X11', '-with-xt=<bool>', nargs.ArgBool(None, 0, 'Activate Xt')) return
def setupHelp(self, help): '''Prints help messages for the package''' import nargs help.addArgument( self.PACKAGE, '-with-' + self.package + '=<bool>', nargs.ArgBool(None, self.required, 'Indicate if you wish to test for ' + self.name)) help.addArgument( self.PACKAGE, '-with-' + self.package + '-dir=<dir>', nargs.ArgDir( None, None, 'Indicate the root directory of the ' + self.name + ' installation')) if self.download and not self.download[0] == 'redefine': help.addArgument( self.PACKAGE, '-download-' + self.package + '=<no,yes,ifneeded,filename>', nargs.ArgDownload(None, 0, 'Download and install ' + self.name)) if hasattr(self, 'usePkgConfig'): help.addArgument( self.PACKAGE, '-with-' + self.package + '-pkg-config=<dir>', nargs.ArgDir( None, None, 'Indicate the root directory of the ' + self.name + ' installation')) help.addArgument( self.PACKAGE, '-with-' + self.package + '-include=<dir>', nargs.ArgDir( None, None, 'Indicate the directory of the ' + self.name + ' include files')) help.addArgument( self.PACKAGE, '-with-' + self.package + '-lib=<libraries: e.g. [/Users/..../lib' + self.package + '.a,...]>', nargs.ArgLibrary(None, None, 'Indicate the ' + self.name + ' libraries')) return
def setupHelp(self, help): import nargs help.addArgument('Matlab', '-with-matlab=<bool>', nargs.ArgBool(None, 0, 'Activate Matlab')) help.addArgument( 'Matlab', '-with-matlab-engine=<bool>', nargs.ArgBool(None, 0, 'Activate Matlab Engine (need --with-matlab also) ')) help.addArgument( 'Matlab', '-with-matlab-dir=<root dir>', nargs.ArgDir( None, None, 'Specify the root directory of the Matlab installation')) help.addArgument( 'Matlab', '-with-matlab-arch=<string>', nargs.ArgString( None, None, 'Use Matlab Architecture (default use first-found)')) return
def setupHelp(self, help): import nargs help = script.Script.setupHelp(self, help) help.addArgument( 'Bootstrapper', 'baseDirectory', nargs.ArgDir(None, os.getcwd(), 'The root directory for all repositories', isTemporary=1)) help.addArgument( 'Bootstrapper', 'compilerRepository', nargs.Arg(None, 'http://ftp.mcs.anl.gov/pub/petsc/ase/Compiler.tgz', 'The repository containing the SIDL compiler', isTemporary=1)) help.addArgument( 'Bootstrapper', 'download', nargs.ArgBool(None, 1, 'Download the base repositories', isTemporary=1)) return help