wiki:docs_module_depend

Version 7 (modified by ehb, 2 years ago) (diff)

--

defining module dependencies

  • module executable dependencies list dependency info
  • this section is used for installers
  • the JSON to include at the top level of the module definition file lists tags and their values
  • the tags can be:
tag value example(s) description
base string "base" : "perl" the primary language used - if applicable
cpan string or list of strings "cpan" : "JSON"
"cpan" : [ "JSON", "MIME::Base64" ]
CPAN module(s) to install
pip string or list of strings "pip" : "numpy scipy matplotlib"
"pip" : [ "numpy scipy", "matplotlib" ]
Python PIP package(s) to install
cmd string or list of strings "cmd" : "git clone https://github.com/ehb54/jspdb.git"[[br]]"cmd" : [ "git clone https://github.com/ehb54/jspdb.git", command(s) to be run
cmd-os string or list of strings "cmd-ubuntu" : "apt install someapt"
"cmd-centos" : [ "yum install xyz", "mkdir -p /x/y/z" ]
os specific command(s) to be run
cmd-os-version string or list of strings "cmd-ubuntu-16" : "apt install someapt"
"cmd-centos-7" : [ "yum install xyz", "mkdir -p /x/y/z" ]
os-version specific command(s) to be run
file string or list of strings "file" : "somefile"
"file" : [ "my-dependency-1", "my-dependency-2" ]
extra file(s) needed, note the defined executable is not needed