예제 #1
0
 def setupHelp(self, help):
     config.package.Package.setupHelp(self, help)
     import nargs
     help.addArgument(
         'MPI', '-download-mpich=<no,yes,ifneeded,filename>',
         nargs.ArgDownload(None, 0, 'Download and install MPICH-2'))
     help.addArgument(
         'MPI', '-download-openmpi=<no,yes,ifneeded,filename>',
         nargs.ArgDownload(None, 0, 'Download and install OpenMPI'))
     help.addArgument(
         'MPI', '-with-mpiexec=<prog>',
         nargs.Arg(None, None, 'The utility used to launch MPI jobs'))
     help.addArgument(
         'MPI', '-with-mpi-compilers=<bool>',
         nargs.ArgBool(None, 1, 'Try to use the MPI compilers, e.g. mpicc'))
     help.addArgument(
         'MPI', '-known-mpi-shared=<bool>',
         nargs.ArgBool(
             None, None,
             'Indicates the MPI libraries are shared (the usual test will be skipped)'
         ))
     help.addArgument(
         'MPI', '-download-mpich-pm=hydra, gforker or mpd',
         nargs.Arg(None, 'gforker', 'Launcher for MPI processes'))
     help.addArgument(
         'MPI', '-download-mpich-device=ch3:nemesis or see mpich2 docs',
         nargs.Arg(None, 'ch3:sock', 'Communicator for MPI processes'))
     help.addArgument('MPI', '-download-mpich-mpe',
                      nargs.ArgBool(None, 0, 'Install MPE with MPICH'))
     help.addArgument(
         'MPI', '-download-mpich-shared',
         nargs.ArgBool(None, 0, 'Install MPICH with shared libraries'))
     return
예제 #2
0
 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
예제 #3
0
파일: make.py 프로젝트: chrispbradley/petsc
 def setupHelp(self, help):
   import nargs
   help.addArgument('Make', '-with-make=<prog>',                            nargs.Arg(None, 'gmake', 'Specify GNU make'))
   help.addArgument('Make', '-with-make-np=<np>',                           nargs.ArgInt(None, None, min=1, help='Default number of threads to use for parallel builds'))
   help.addArgument('Make', '-download-make=<no,yes,filename>',             nargs.ArgDownload(None, 0, 'Download and install GNU make'))
   help.addArgument('Make', '-download-make-cc=<prog>',                     nargs.Arg(None, None, 'C compiler for GNU make configure'))
   help.addArgument('Make', '-download-make-configure-options=<options>',   nargs.Arg(None, None, 'additional options for GNU make configure'))
   return
예제 #4
0
 def setupHelp(self, help):
     import nargs
     help.addArgument('PETSc', '-with-cmake=<prog>',
                      nargs.Arg(None, 'cmake', 'Specify cmake'))
     help.addArgument(
         'PETSc', '-download-cmake=<no,yes,filename>',
         nargs.ArgDownload(None, 0, 'Download and install cmake'))
     return
예제 #5
0
 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