"Fossies" - the Fresh Open Source Software Archive

Member "petsc-3.12.3/config/BuildSystem/config/packages/ADIOS.py" (22 Oct 2019, 2972 Bytes) of package /linux/misc/petsc-3.12.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "ADIOS.py" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 3.12.0_vs_3.12.1.

    1 import config.package
    2 
    3 class Configure(config.package.GNUPackage):
    4   def __init__(self, framework):
    5     config.package.GNUPackage.__init__(self, framework)
    6     self.gitcommit         = '6f24c5e' # master may 23, 2019
    7     self.download          = ['git://https://github.com/ornladios/ADIOS.git']
    8     self.downloaddirnames  = ['adios']
    9     self.functions         = ['adios_open']
   10     self.includes          = ['adios.h']
   11     self.liblist           = [['libadiosf.a', 'libadios.a'],['libadios.a']]
   12     self.hastests          = 1
   13     return
   14 
   15   def setupDependencies(self, framework):
   16     config.package.GNUPackage.setupDependencies(self, framework)
   17     self.zlib           = framework.require('config.packages.zlib',self)
   18     self.mpi            = framework.require('config.packages.MPI', self)
   19     self.hdf5           = framework.require('config.packages.hdf5', self)
   20     self.netcdf         = framework.require('config.packages.netcdf', self)
   21     self.pthread        = framework.require('config.packages.pthread', self)
   22     self.mathlib        = framework.require('config.packages.mathlib',self)
   23     self.deps           = [self.mpi,self.pthread,self.mathlib]
   24     self.odeps          = [self.hdf5,self.netcdf,self.zlib]
   25     return
   26 
   27   def gitPreReqCheck(self):
   28     '''ADIOS from the git repository needs the GNU autotools'''
   29     return self.programs.autoreconf and self.programs.libtoolize
   30 
   31   def formGNUConfigureArgs(self):
   32     '''Add ADIOS specific configure arguments'''
   33     args = config.package.GNUPackage.formGNUConfigureArgs(self)
   34     self.framework.pushLanguage('C')
   35     args.append('MPICC="'+self.framework.getCompiler()+'"')
   36     self.framework.popLanguage()
   37     if hasattr(self.compilers, 'CXX'):
   38       self.framework.pushLanguage('Cxx')
   39       args.append('MPICXX="'+self.framework.getCompiler()+'"')
   40       self.framework.popLanguage()
   41     if hasattr(self.compilers, 'FC'):
   42       self.framework.pushLanguage('FC')
   43       args.append('MPIFC="'+self.framework.getCompiler()+'"')
   44       self.framework.popLanguage()
   45     else:
   46       args.append('--disable-fortran')
   47     if self.hdf5.found:
   48       args.append('--with-phdf5=yes')
   49       args.append('--with-phdf5-incdir='+self.installDir)
   50       args.append('--with-phdf5-libdir='+self.installDir)
   51       args.append('--with-phdf5-libs=" "')
   52     if self.netcdf.found:
   53       args.append('--with-nc4par=yes')
   54       args.append('--with-nc4par-incdir='+self.installDir)
   55       args.append('--with-nc4par-libdir='+self.installDir)
   56       args.append('--with-nc4par-libs=" "')
   57       args.append('NETCDF_LIBS=" "')
   58     if self.zlib.found:
   59       args.append('--with-zlib=yes')
   60       args.append('--with-zlib-incdir='+self.installDir)
   61       args.append('--with-zlib-libdir='+self.installDir)
   62       args.append('--with-zlib-libs=" "')
   63       args.append('ZLIB_LIBS=" "')
   64 
   65     args.append('CPPFLAGS="'+self.headers.toStringNoDupes(self.dinclude)+'"')
   66     args.append('LIBS="'+self.libraries.toStringNoDupes(self.dlib)+'"')
   67 
   68     return args
   69