Exemplo n.º 1
0
 def setupHelp(self, help):
     import nargs
     config.package.CMakePackage.setupHelp(self, help)
     help.addArgument(
         'KOKKOS-KERNELS', '-with-kokkos-kernels-tpl=<bool>',
         nargs.ArgBool(
             None, 1,
             'Indicate if you wish to let Kokkos-Kernels use Third-Party Libraries (TPLs)'
         ))
     return
Exemplo n.º 2
0
Arquivo: script.py Projeto: spcl/fflib
    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',
                         '-h',
                         nargs.ArgBool(None,
                                       0,
                                       'Print this help message',
                                       isTemporary=1),
                         ignoreDuplicates=1)
        return help
Exemplo n.º 3
0
 def setupHelp(self, help):
     config.package.Package.setupHelp(self, help)
     import nargs
     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-libraries=<bool>',
         nargs.ArgBool(
             None, None,
             'Indicates the MPI libraries are shared (the usual test will be skipped)'
         ))
     help.addArgument(
         'MPI', '-with-mpiuni-fortran-binding=<bool>',
         nargs.ArgBool(None, 1, 'Build the MPIUni Fortran bindings'))
     return
Exemplo n.º 4
0
 def setupHelp(self, help):
     if not self.isDarwin:
         return
     import nargs
     help.addArgument(
         'PETSc', '-%s=<bool>' % self.optionName,
         nargs.ArgBool(
             None, 0,
             'Activates automatic addition of firewall rules (blocking incoming connections) during testing on macOS to prevent firewall popup windows. Uses sudo so gmakefile.test will ask for your password.'
         ))
Exemplo n.º 5
0
 def setupHelp(self, help):
     '''Default GNU setupHelp, but p4est debugging option'''
     config.package.GNUPackage.setupHelp(self, help)
     import nargs
     help.addArgument(
         self.PACKAGE, '-with-p4est-debugging=<bool>',
         nargs.ArgBool(
             None, 0,
             "Use p4est's (sometimes computationally intensive) debugging"))
     return
Exemplo n.º 6
0
 def setupHelp(self, help):
     config.package.Package.setupHelp(self, help)
     import nargs
     help.addArgument(
         'OpenBLAS', '-download-openblas-64-bit-blas-indices',
         nargs.ArgBool(None, 0, 'Use 64 bit integers for OpenBLAS'))
     help.addArgument(
         'OpenBLAS', '-download-openblas-make-options=<options>',
         nargs.Arg(None, None, 'additional options for building OpenBLAS'))
     return
Exemplo n.º 7
0
 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
Exemplo n.º 8
0
 def setupHelp(self, help):
     config.package.Package.setupHelp(self, help)
     import nargs
     help.addArgument(
         'MPI', '-with-mpiexec=<prog>',
         nargs.Arg(
             None, None,
             'The utility used to launch MPI jobs. (should support "-n <np>" option)'
         ))
     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-libraries=<bool>',
         nargs.ArgBool(
             None, None,
             'Indicates the MPI libraries are shared (the usual test will be skipped)'
         ))
     return
Exemplo n.º 9
0
 def setupHelp(self, help):
     import nargs
     config.package.CMakePackage.setupHelp(self, help)
     help.addArgument(
         'KOKKOS', '-with-kokkos-hip-arch=<string>',
         nargs.ArgString(None, 0, 'One of VEGA900, VEGA906, VEGA908'))
     help.addArgument(
         'KOKKOS', '-with-kokkos-init-warnings=<bool>',
         nargs.ArgBool(None, True,
                       'Enable/disable warnings in Kokkos initialization'))
     return
Exemplo n.º 10
0
 def setupHelp(self, help):
   import nargs
   help.addArgument('Compiler Flags', '-optionsModule=<module name>', nargs.Arg(None, 'config.compilerOptions', 'The Python module used to determine compiler options and versions'))
   help.addArgument('Compiler Flags', '-with-debugging=<bool>', nargs.ArgBool(None, 1, 'Specify debugging version of libraries'))
   help.addArgument('Compiler Flags', '-C_VERSION=<string>',   nargs.Arg(None, 'Unknown', 'The version of the C compiler'))
   help.addArgument('Compiler Flags', '-CXX_VERSION=<string>', nargs.Arg(None, 'Unknown', 'The version of the C++ compiler'))
   help.addArgument('Compiler Flags', '-FC_VERSION=<string>',  nargs.Arg(None, 'Unknown', 'The version of the Fortran compiler'))
   help.addArgument('Compiler Flags', '-CUDA_VERSION=<string>',nargs.Arg(None, 'Unknown', 'The version of the CUDA compiler'))
   help.addArgument('Compiler Flags', '-HIP_VERSION=<string>',nargs.Arg(None, 'Unknown', 'The version of the HIP compiler'))
   help.addArgument('Compiler Flags', '-SYCL_VERSION=<string>',nargs.Arg(None, 'Unknown', 'The version of the SYCL compiler'))
   help.addArgument('Compiler Flags', '-COPTFLAGS=<string>',   nargs.Arg(None, None, 'Override the debugging/optimization flags for the C compiler'))
   help.addArgument('Compiler Flags', '-CXXOPTFLAGS=<string>', nargs.Arg(None, None, 'Override the debugging/optimization flags for the C++ compiler'))
   help.addArgument('Compiler Flags', '-FOPTFLAGS=<string>',   nargs.Arg(None, None, 'Override the debugging/optimization flags for the Fortran compiler'))
   help.addArgument('Compiler Flags', '-CUDAOPTFLAGS=<string>',   nargs.Arg(None, None, 'Override the debugging/optimization flags for the CUDA compiler'))
   help.addArgument('Compiler Flags', '-HIPOPTFLAGS=<string>',   nargs.Arg(None, None, 'Override the debugging/optimization flags for the HIP compiler'))
   help.addArgument('Compiler Flags', '-SYCLOPTFLAGS=<string>',   nargs.Arg(None, None, 'Override the debugging/optimization flags for the SYCL compiler'))
   # not sure where to put this, currently gcov is handled in ../compilerOptions.py
   # not sure where to put this, currently gcov is handled in ../compilerOptions.py
   help.addArgument('Compiler Flags', '-with-gcov=<bool>', nargs.ArgBool(None, 0, 'Specify that GNUs coverage tool gcov is used'))
   return
Exemplo n.º 11
0
 def setupHelp(self, help):
     import nargs
     PETSc.package.NewPackage.setupHelp(self, help)
     help.addArgument(
         'CUDA', '-with-cuda-arch=<arch>',
         nargs.Arg(None, None, 'Target architecture for nvcc, e.g. sm_13'))
     help.addArgument(
         'CUDA', '-with-cuda-only=<bool>',
         nargs.ArgBool(None, 1,
                       'Allows CUDA compiles without Thrust and Cusp'))
     return
Exemplo n.º 12
0
 def setupHelp(self, help):
     import nargs
     help.addArgument(
         'Types', '-known-endian=<big or little>',
         nargs.Arg(None, None, 'Are bytes stored in big or little endian?'))
     help.addArgument(
         'Visibility', '-with-visibility=<bool>',
         nargs.ArgBool(
             None, 1,
             'Use compiler visibility flags to limit symbol visibility'))
     return
Exemplo n.º 13
0
 def setupHelp(self, help):
     import nargs
     help.addArgument('PETSc', '-with-clanguage=<C or C++>',
                      nargs.Arg(None, 'C', 'Specify C or C++ language'))
     help.addArgument(
         'PETSc', '-with-c++-support=<bool>',
         nargs.ArgBool(
             None, 0,
             'When building C, compile C++ portions of external libraries (e.g. Hypre)'
         ))
     help.addArgument(
         'PETSc', '-with-c-support=<bool>',
         nargs.ArgBool(
             None, 0,
             'When building with C++, compile so may be used directly from C'
         ))
     help.addArgument(
         'PETSc', '-with-fortran=<bool>',
         nargs.ArgBool(None, 1, 'Create and install the Fortran wrappers'))
     return
Exemplo n.º 14
0
 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
Exemplo n.º 15
0
    def setupHelp(self, help):
        import nargs
        help.addArgument(
            'PETSc', '-prefix=<path>',
            nargs.Arg(None, '',
                      'Specifiy location to install PETSc (eg. /usr/local)'))
        help.addArgument(
            'Windows', '-with-windows-graphics=<bool>',
            nargs.ArgBool(None, 1, 'Enable check for Windows Graphics'))
        help.addArgument(
            'PETSc', '-with-default-arch=<bool>',
            nargs.ArgBool(
                None, 1,
                'Allow using the last configured arch without setting PETSC_ARCH'
            ))
        help.addArgument(
            'PETSc', '-with-single-library=<bool>',
            nargs.ArgBool(
                None, 1, 'Put all PETSc code into the single -lpetsc library'))

        return
Exemplo n.º 16
0
 def setupHelp(self, help):
     import nargs
     help.addArgument(
         'PETSc', '-with-precision=<single,double,__float128>',
         nargs.Arg(None, 'double', 'Specify numerical precision'))
     help.addArgument(
         'PETSc', '-with-scalar-type=<real or complex>',
         nargs.Arg(None, 'real', 'Specify real or complex numbers'))
     help.addArgument(
         'PETSc', '-with-mixed-precision=<bool>',
         nargs.ArgBool(None, 0, 'Allow single precision linear solve'))
     return
Exemplo n.º 17
0
 def setupHelp(self, help):
     import nargs
     help.addArgument('PETSc', '-PETSC_ARCH=<string>',
                      nargs.Arg(None, None, 'The configuration name'))
     help.addArgument('PETSc', '-with-petsc-arch=<string>',
                      nargs.Arg(None, None, 'The configuration name'))
     help.addArgument(
         'PETSc', '-force=<bool>',
         nargs.ArgBool(
             None, 0,
             'Bypass configure hash caching, and run to completion'))
     return
Exemplo n.º 18
0
 def setupHelp(self, help):
     import nargs
     help.addArgument(
         'PETSc', '-with-log=<bool>',
         nargs.ArgBool(None, 1, 'Activate logging code in PETSc'))
     help.addArgument(
         'PETSc', '-with-threadsafety=<bool>',
         nargs.ArgBool(
             None, 0,
             'Allow individual threads in PETSc to call PETSc routines'))
     help.addArgument(
         'PETSc', '-with-info=<bool>',
         nargs.ArgBool(None, 1,
                       'Activate PetscInfo() (i.e. -info)  code in PETSc'))
     help.addArgument(
         'PETSc', '-with-ctable=<bool>',
         nargs.ArgBool(
             None, 1,
             'Activate CTABLE hashing for certain search functions - to conserve memory'
         ))
     help.addArgument(
         'PETSc', '-with-fortran-kernels=<bool>',
         nargs.ArgBool(None, 0, 'Use Fortran for linear algebra kernels'))
     help.addArgument(
         'PETSc', '-with-avx512-kernels=<bool>',
         nargs.ArgBool(
             None, 1,
             'Use AVX-512 intrinsics for linear algebra kernels when available'
         ))
     help.addArgument(
         'PETSc', '-with-is-color-value-type=<char,short>',
         nargs.ArgString(None, 'short',
                         'char, short can store 256, 65536 colors'))
     return
Exemplo n.º 19
0
    def setupHelp(self, help):
        import nargs, datetime

        help = script.Script.setupHelp(self, help)
        help.addArgument(
            'BuildCheck', '-remoteMachine',
            nargs.Arg(None, 'login.mcs.anl.gov',
                      'The machine on which PETSc logs are stored'))
        help.addArgument(
            'BuildCheck', '-logDirectory',
            nargs.Arg(
                None, os.path.join('/mcs', 'ftp', 'pub', 'petsc',
                                   'nightlylogs'),
                'The directory in which PETSc logs are stored'))
        help.addArgument(
            'BuildCheck', '-archCompilers',
            nargs.Arg(
                None, {},
                'A mapping from architecture names to lists of compiler names')
        )
        help.addArgument('BuildCheck', '-blameMail',
                         nargs.ArgBool(None, 1, 'Generate blame emails'))
        help.addArgument('BuildCheck', '-blameMailPost',
                         nargs.ArgBool(None, 1, 'Post (send) blame emails'))
        help.addArgument('BuildCheck', '-ignoreDeprecated',
                         nargs.ArgBool(None, 1, 'Ignore deprecated warnings'))
        help.addArgument('BuildCheck', '-ignorePragma',
                         nargs.ArgBool(None, 1, 'Ignore unknown pragma'))
        help.addArgument('BuildCheck', '-ignoreNote',
                         nargs.ArgBool(None, 1, 'Ignore note warnings'))
        help.addArgument(
            'BuildCheck', '-blameMailDate',
            nargs.Arg(None, str(datetime.date.today()),
                      'Date given in blame mail subject'))
        help.addArgument(
            'BuildCheck', '-buildBranch',
            nargs.Arg(None, '',
                      'Check build logs coresponding to given branch name'))
        return help
Exemplo n.º 20
0
    def setupArguments(self, argDB):
        '''Setup types in the argument database'''
        import nargs

        argDB = args.ArgumentProcessor.setupArguments(self, argDB)
        argDB.setType(
            'log',
            nargs.Arg(None, 'buildsystem.log', 'The filename for the log'))
        argDB.setType(
            'logAppend',
            nargs.ArgBool(
                None,
                0,
                'The flag determining whether we backup or append to the current log',
                isTemporary=1))
        argDB.setType(
            'debugLevel',
            nargs.ArgInt(
                None, 3,
                'Integer 0 to 4, where a higher level means more detail', 0,
                5))
        argDB.setType(
            'debugSections',
            nargs.Arg(
                None, [],
                'Message types to print, e.g. [compile,link,hg,install]'))
        argDB.setType(
            'debugIndent',
            nargs.Arg(None, '  ', 'The string used for log indentation'))
        argDB.setType(
            'scrollOutput',
            nargs.ArgBool(
                None, 0,
                'Flag to allow output to scroll rather than overwriting a single line'
            ))
        argDB.setType(
            'noOutput',
            nargs.ArgBool(None, 0, 'Flag to suppress output to the terminal'))
        return argDB
Exemplo n.º 21
0
    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
Exemplo n.º 22
0
 def setupHelp(self, help):
     config.package.Package.setupHelp(self, help)
     import nargs
     help.addArgument(
         'MPI', '-download-mpich=<no,yes,filename>',
         nargs.ArgDownload(None, 0, 'Download and install MPICH-2'))
     help.addArgument(
         'MPI', '-download-openmpi=<no,yes,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-libraries=<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, 'hydra', '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=<bool>',
                      nargs.ArgBool(None, 0, 'Install MPE with MPICH'))
     help.addArgument(
         'MPI', '-download-mpich-shared=<bool>',
         nargs.ArgBool(None, 0, 'Install MPICH with shared libraries'))
     help.addArgument(
         'MPI', '-with-mpiuni-fortran-binding=<bool>',
         nargs.ArgBool(None, 1, 'Build the MPIUni Fortran bindings'))
     return
Exemplo n.º 23
0
    def setupHelp(self):
        import nargs

        help = script.Script.setupHelp(self)
        help.addArgument('RemoteBuild',
                         'mode',
                         nargs.Arg(None,
                                   0,
                                   'Action, e.g. build, log, ...',
                                   isTemporary=1),
                         forceLocal=1)
        help.addArgument('RemoteBuild',
                         'dryRun',
                         nargs.ArgBool(None,
                                       0,
                                       'Display but do not execute commands',
                                       isTemporary=1),
                         forceLocal=1)
        return help
Exemplo n.º 24
0
 def setupHelp(self, help):
     import nargs
     help.addArgument(
         'PETSc', '-with-petsc4py=<bool>',
         nargs.ArgBool(None, False,
                       'Build PETSc Python bindings (petsc4py)'))
     help.addArgument(
         'PETSc', '-with-petsc4py-test-np=<np>',
         nargs.ArgInt(None,
                      None,
                      min=1,
                      help='Number of processes to use for petsc4py tests'))
     help.addArgument(
         'PETSc', '-with-numpy-include=<dir>',
         nargs.Arg(
             None, None,
             'Path to numpy headers from numpy.get_include() (default: autodetect)'
         ))
     return
Exemplo n.º 25
0
  def setupHelp(self, help):
    import nargs

    help        = config.base.Configure.setupHelp(self, help)
    searchdirs  = []
    packagedirs = []

    help.addArgument('Framework', '-configModules',       nargs.Arg(None, None, 'A list of Python modules with a Configure class'))
    help.addArgument('Framework', '-ignoreCompileOutput=<bool>', nargs.ArgBool(None, 1, 'Ignore compiler output'))
    help.addArgument('Framework', '-ignoreLinkOutput=<bool>',    nargs.ArgBool(None, 1, 'Ignore linker output'))
    help.addArgument('Framework', '-ignoreWarnings=<bool>',      nargs.ArgBool(None, 0, 'Ignore compiler and linker warnings'))
    help.addArgument('Framework', '-doCleanup=<bool>',           nargs.ArgBool(None, 1, 'Delete any configure generated files (turn off for debugging)'))
    help.addArgument('Framework', '-with-alternatives=<bool>',   nargs.ArgBool(None, 0, 'Provide a choice among alternative package installations'))
    help.addArgument('Framework', '-with-executables-search-path', nargs.Arg(None, searchdirs, 'A list of directories used to search for executables'))
    help.addArgument('Framework', '-with-packages-search-path',  nargs.Arg(None, packagedirs, 'A list of directories used to search for packages'))
    help.addArgument('Framework', '-with-packages-build-dir=<dir>', nargs.Arg(None, None, 'Location to unpack and run the build process for downloaded packages'))
    help.addArgument('Framework', '-with-batch=<bool>',          nargs.ArgBool(None, 0, 'Machine using cross-compilers or a batch system to submit jobs'))
    help.addArgument('Framework', '-with-file-create-pause=<bool>', nargs.ArgBool(None, 0, 'Add 1 sec pause between config temp file delete/recreate'))
    return help
Exemplo n.º 26
0
 def setupHelp(self, help):
     config.package.Package.setupHelp(self, help)
     import nargs
     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-blaslapack-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
Exemplo n.º 27
0
  def setupArguments(self, clArgs = None):
    import nargs

    self.help.addArgument('Main', 'help', nargs.ArgBool(None, 0, 'Print this help message', isTemporary = 1))
    self.help.addArgument('Main', 'h',    nargs.ArgBool(None, 0, 'Print this help message', isTemporary = 1))
    self.help.addArgument('Actions', 'updateVersion',   nargs.ArgBool(None, 1, 'Update petscversion.h'))
    self.help.addArgument('Actions', 'pushChange',      nargs.ArgBool(None, 1, 'Push changes'))
    self.help.addArgument('Actions', 'makePatch',       nargs.ArgBool(None, 1, 'Construct the patch for Petsc'))
    self.help.addArgument('Actions', 'makeMasterPatch', nargs.ArgBool(None, 1, 'Construct the master patch for Petsc'))
    self.help.addArgument('Actions', 'integratePatch',  nargs.ArgBool(None, 1, 'Integrate changes into the Petsc development repository'))
    self.help.addArgument('Actions', 'updateWeb',       nargs.ArgBool(None, 1, 'Update the patches web page'))
    patchUrl = os.path.join('/mcs', 'ftp', 'pub', 'petsc', 'patches')
    if not os.path.isdir(patchUrl):
      patchUrl = urlparse.urlunparse(('ssh', '*****@*****.**', patchUrl, '', '', ''))
    else:
      patchUrl = urlparse.urlunparse(('file', '', patchUrl, '', '', ''))
    self.help.addArgument('Variables', 'patchUrl=<dir>', nargs.Arg(None, patchUrl, 'The directory containing both the patch and master patch files'))
    # Variables necessary when some actions are excluded
    self.help.addArgument('Variables for missing actions', 'version=<num>',         nargs.Arg(None, None, 'The version number being patched (defined in updateVersion), e.g. 2.1.0', isTemporary = 1))
    self.help.addArgument('Variables for missing actions', 'patchNum=<num>',        nargs.ArgInt(None, None, 'The patch number (defined in updateVersion), e.g. 1', min = 1, isTemporary = 1))
    self.help.addArgument('Variables for missing actions', 'changeSets=[<num>...]', nargs.Arg(None, None, 'The ChangeSets which were pushed (defined in pushChange), e.g. 1.1052', isTemporary = 1))

    self.argDB.insertArgs(clArgs)
    return
Exemplo n.º 28
0
    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
Exemplo n.º 29
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
Exemplo n.º 30
0
  def setupArgDB(self, argDB, clArgs):
    '''Setup argument types, using the database created by base.Base'''

    # Generic arguments
    argDB.setType('help',           nargs.ArgBool(None, 0, 'Print help message',   isTemporary = 1), forceLocal = 1)
    argDB.setType('noConfigure',    nargs.ArgBool(None, 0, 'Suppress configure',   isTemporary = 1), forceLocal = 1)
    argDB.setType('forceConfigure', nargs.ArgBool(None, 0, 'Force a  reconfigure', isTemporary = 1), forceLocal = 1)
    argDB.setType('displayTarget',  nargs.ArgBool(None, 0, 'Display a target',     isTemporary = 1), forceLocal = 1)
    argDB.setType('noStackTrace',   nargs.ArgBool(None, 0, 'Suppress a stack trace on error'), forceLocal = 1)
    argDB.setType('checkpoint',     nargs.Arg(None, None,  'Pickled state of evaluation'), forceLocal = 1)
    # Source database manipulation
    argDB.setType('restart',        nargs.ArgBool(None, 0, 'Restart the build',    isTemporary = 1), forceLocal = 1)
    # Argument database manipulation
    argDB.setType('fileset',        nargs.Arg(None, None, 'Name of a FileSet or full path of an individual file', isTemporary = 1), forceLocal = 1)
    argDB.setType('regExp',         nargs.Arg(None, None, 'Regular expression',                                   isTemporary = 1), forceLocal = 1)

    if not 'installedprojects'  in self.argDB: self.argDB['installedprojects']  = []
    if not 'installedLanguages' in self.argDB: self.argDB['installedLanguages'] = ['Python', 'Cxx']
    if not 'clientLanguages'    in self.argDB: self.argDB['clientLanguages']    = []

    base.Base.setupArgDB(self, argDB, clArgs)
    return argDB