PyXMake Developer Guide 1.0
PyXMake
Loading...
Searching...
No Matches
PyXMake.Build.Make.PyReq Class Reference

Base class for all PyReq build events. More...

Inheritance diagram for PyXMake.Build.Make.PyReq:
PyXMake.Build.Make.Custom PyXMake.Build.Make.Make PyXMake.Tools.Utility.AbstractBase

Public Member Functions

 __init__ (self, *args, **kwargs)
 
 Preprocessing (self, cmdstring='')
 
 parse (cls, **kwargs)
 
 create (self, **kwargs)
 
- Public Member Functions inherited from PyXMake.Build.Make.Custom
 Build (self, cmdstring, **kwargs)
 
- Public Member Functions inherited from PyXMake.Build.Make.Make
 __posix__ (self, **kwargs)
 
 AddIncludePath (self, includes)
 
 AddDependencyPath (self, dependencies)
 
 UseLibraries (self, libs)
 
 SourcePath (self, path)
 
 OutputPath (self, path, files="")
 
 Environment (self, path, script="ifortvars.bat")
 
 Postprocessing (self, cmdstring='')
 
 run (cls, **kwargs)
 
- Public Member Functions inherited from PyXMake.Tools.Utility.AbstractBase
 __new__ (cls, *args, **kwargs)
 
 recover (cls, *args)
 
 classify (cls, *args, **kwargs)
 
 jsonify (self)
 
 update (self, **kwargs)
 
 __repr__ (self)
 
 __str__ (self)
 
 __getstate__ (self)
 
 __setstate__ (self, _dict)
 

Public Attributes

str MakeObjectKind = "PyReq"
 String identifier of current instance.
 
list libs = []
 
list libdirs = []
 
list incdirs = []
 
str precmd = ""
 Command executed during pre-build event.
 
str compargs = "--no-pin"
 
 scrtdir
 
 verbose
 
 outdir = Utility.GetRequirements(self.srcdir, getattr(self,"compargs","--no-pin").split(delimn), **kwargs)
 
- Public Attributes inherited from PyXMake.Build.Make.Custom
str MakeObjectKind = "Custom"
 String identifier of current instance.
 
str exe = "cmd.exe /c &&"
 The executable command used in all build events.
 
# pragma no cover hasFoss
 
 buildname = self.buildid + self.architecture
 Immutable settings for Custom object.
 
list mkl_dependency = ["mkl_vsl.f90"]
 
str compargs = ""
 Command line arguments passed in by the user.
 
 temps = self.temps + (os.getenv("ABQ_ENV_FILE"), )
 Command line arguments passed in by the user.
 
command+ hasFoss = " -DCMAKE_VERBOSE_MAKEFILE=On"
 
 precmd = delimn.join([batch,'%s' % command])
 
str makecmd = delimn.join([batch,'%s' % "%s --build build" % self.exe])
 Command line arguments passed in by the user.
 
 postcmd = delimn.join([batch,'%s' % "%s --install build" % self.exe])
 
- Public Attributes inherited from PyXMake.Build.Make.Make
 buildid = BuildID
 Base string of build object.
 
list srcs = []
 Source file or folders.
 
list bare = not BuildID and not self.srcs
 
 stype = kwargs.get("stype",'Fortran')
 Source file type.
 
 verbose = verbose
 Level of verbosity of the current build object.
 
 hasFoss = kwargs.get("foss", Utility.GetExecutable("choco") or Utility.GetPlatform() in ["linux"] or kwargs.get("bash",False))
 Toggle between free open source software and commercial 3rd party libraries.
 
 scrtdir = os.getcwd()
 Current scratch directory

 
 srcdir = os.getcwd()
 Default search directory for source files.
 
 outdir = os.getcwd()
 Default search directory for output.
 
_, self.intelpath, self.iniCompiler intelpath = content
 Path to Intel Fortran Compiler (read from Paths.log or empty).
 
tuple temps = ()
 Tuple of data to be removed after job completion.
 
list incdirs = []
 List of include directories.
 
list libdirs = []
 List of library directories.
 
list libs = []
 List of actual libraries (by name) used during linking.
 
list copyfiles = []
 List of files to be copied to the output directory after finish.
 
str iniCompiler = ""
 Default initialization of compiler script.
 
bool setarch = True if kwargs.get('arch', None) in ['x86', 'x64'] else False
 Define the architecture for the build directly by using the keyword argument "arch".
 
 msvsc = kwargs.get("msvsc",'vs2015')
 Default version of Microsoft visual studio used by the Intel Fortran Compiler.
 
str architecture = 'x86'
 Processor architecture.
 
str postcmd = ""
 Post build command.
 
 buildname = self.temps + (inputfile, )
 
str precmd = self.iniCompiler+" "+cmdstring
 Command executed during pre-build event.
 
 compargs = cmdstring
 Command line arguments passed in by the user.
 
str makecmd = self.iniCompiler+" "+os.path.join(self.path2exe,self.exe)+" "+ cmd + cmdstring
 Command executed during build event.
 
 mkl_dependency
 

Additional Inherited Members

- Static Public Member Functions inherited from PyXMake.Build.Make.Make
 __parser__ ()
 
 Detach ()
 
 F2CPreprocessing (PreprocessingFile)
 
 sanitize (string, **kwargs)
 
 setup (*args, **kwargs)
 
- Static Public Member Functions inherited from PyXMake.Tools.Utility.AbstractBase
 __getbase__ (base, cls)
 
- Protected Attributes inherited from PyXMake.Build.Make.Make
list _mkl_includes = [x for x in self.incdirs if "mkl" in x]
 

Detailed Description

Base class for all PyReq build events.

Inherited class to build projects using PyReq.

Inherited from Custom.

Constructor & Destructor Documentation

◆ __init__()

PyXMake.Build.Make.PyReq.__init__ ( self,
* args,
** kwargs )
Initialization of PyReq class object.

@note Creates a list of all 3rd party dependencies of a package using PyReq.

Reimplemented from PyXMake.Build.Make.Custom.

Definition at line 1818 of file Make.py.

Member Function Documentation

◆ create()

PyXMake.Build.Make.PyReq.create ( self,
** kwargs )
Execute make command

Reimplemented from PyXMake.Build.Make.Make.

Definition at line 1922 of file Make.py.

◆ parse()

PyXMake.Build.Make.PyReq.parse ( cls,
** kwargs )
Execute the current class as a CLI command.

Reimplemented from PyXMake.Build.Make.Custom.

Definition at line 1850 of file Make.py.

◆ Preprocessing()

PyXMake.Build.Make.PyReq.Preprocessing ( self,
cmdstring = '' )
Assemble command string for the pre-build event.

Reimplemented from PyXMake.Build.Make.Make.

Definition at line 1839 of file Make.py.

Member Data Documentation

◆ compargs

str PyXMake.Build.Make.PyReq.compargs = "--no-pin"

Definition at line 1836 of file Make.py.

◆ incdirs

list PyXMake.Build.Make.PyReq.incdirs = []

Definition at line 1831 of file Make.py.

◆ libdirs

list PyXMake.Build.Make.PyReq.libdirs = []

Definition at line 1830 of file Make.py.

◆ libs

list PyXMake.Build.Make.PyReq.libs = []

Definition at line 1829 of file Make.py.

◆ MakeObjectKind

str PyXMake.Build.Make.PyReq.MakeObjectKind = "PyReq"

String identifier of current instance.


Definition at line 1826 of file Make.py.

◆ outdir

PyXMake.Build.Make.PyReq.outdir = Utility.GetRequirements(self.srcdir, getattr(self,"compargs","--no-pin").split(delimn), **kwargs)

Definition at line 1945 of file Make.py.

◆ precmd

PyXMake.Build.Make.PyReq.precmd = ""

Command executed during pre-build event.

Definition at line 1834 of file Make.py.

◆ scrtdir

PyXMake.Build.Make.PyReq.scrtdir

Definition at line 1931 of file Make.py.

◆ verbose

PyXMake.Build.Make.PyReq.verbose

Definition at line 1936 of file Make.py.


The documentation for this class was generated from the following file: