|
| __init__ (self, *args, **kwargs) |
|
| parse (cls, *args, **kwargs) |
|
| __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") |
|
| Preprocessing (self, cmdstring='', inend='', outend='', copyfiles=[], replace={'!DEC$ IF':'#IF','!DEC$ ELSE':'#ELSE','!DEC$ ENDIF':'#ENDIF'}) |
|
| Build (self, cmdstring, **kwargs) |
|
| Postprocessing (self, cmdstring='') |
|
| run (cls, **kwargs) |
|
| create (self, **kwargs) |
|
| __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) |
|
| __create__ (self, **kwargs) |
|
|
str | MakeObjectKind = 'Py2X' |
| String identifier of current instance.
|
|
| no_static_mkl = kwargs.get('no_static_mkl', True) |
| Define whether Intel's MKL should be statically or dynamically linked.
|
|
| no_mkl = kwargs.get("no_mkl", self.hasFoss and (Utility.GetExecutable("choco") or Utility.GetPlatform() in ["linux","cygwin","msys","darwin"])) |
| Define whether Intel's MKL should be discarded Defaults to False on NT systems.
|
|
| no_append_arch = kwargs.get('no_append_arch', False) |
| Define whether the architecture shall be appended to the build name.
|
|
| incremental = kwargs.get('incremental', False) |
| Define if the input should be compiled exactly as provided.
|
|
str | path2exe = sys.executable.replace("\python.exe","") |
| Absolute system path to Python executable.
|
|
str | exe = 'python.exe' |
| The executable command used in the main build event.
|
|
str | buildname = self.buildid+"_pyd"+self.architecture+".f90" |
| Temporary build name of current job.
|
|
str | architecture = "x86": |
|
| incdirs |
|
| libs = list(Utility.ArbitraryFlattening(self.libs)) |
|
str | libs = "Library" if Utility.GetPlatform() in ["windows"] else "" |
|
list | incremental = [x for x in self.srcs if os.path.splitext(x)[1].lower() in (".for", ".f95", ".f", ".f90")] |
|
copyfile(os.path.join(Path2Config,), os.path.join(self.scrtdir,)) | bare = proc.pid: |
| Iterate through all active processes matching the current BuildID and kill them.
|
|
| temps = self.temps + (".f2py_f2cmap", self.buildname) |
| Tuple of temporary files deleted after job completion.
|
|
| buildid = proc.pid; |
|
| hasFoss |
|
| 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 |
|
str | SystemObjectKind = "NT" |
| String identifier of current instance.
|
|
str | SystemObjectKind = "Base" |
| String identifier of current instance.
|
|
str | SystemObjectKind = "POSIX" |
| String identifier of current instance.
|
|
| scrtdir |
| Overwrite create method in all subclasses to use a predefined MakeFile for all builds.
|
|
| temps = self.temps + ("Makefile",) |
| Overwrite create method in all subclasses to use a predefined MakeFile for all builds.
|
|
| environ = copy.deepcopy(getattr(os.environ,"_data",{})) |
|
| precmd = GetPreprocessingCommand(1).split() + self.precmd.split()[4:]; self.precmd.insert(-1,"-o") |
|
str | precmd = "" |
|
| verbose |
|
| intermediate_wrapper |
|
| wrapper_module = self.scrtdir) |
|
| libdirs |
|
| outdir |
| Accept both OutLibs and OutDir variable.
|
|
| outlibs = self.outmodule: |
|
| outmodule = True) |
|
Base class for all Py2X (for now only f2py) build events.
Inherited class to build projects using Py2X.
Inherited from Make and flavors in dependence of the underlying or requested operating system (optionally).