|
Makeprojects
|
Module the handles python script execution. More...
Classes | |
| class | BuildPythonFile |
| Class to build with python scripts. More... | |
Functions | |
| match (file_name) | |
| Check if the filename is a type that this module supports. | |
| create_simple_script_object (file_name, entry=None, verbose=False) | |
| Create a BuildPythonFile for a script with a single entry point. | |
| create_build_rules_objects (file_name, build_rules, parms=None, verbose=False) | |
| Create BuildObjects from a loaded build_rules.py file. | |
| create_clean_rules_objects (file_name, build_rules, parms=None, verbose=False) | |
| Create BuildObjects from a loaded build_rules.py file. | |
Variables | |
| tuple | BUILD_LIST |
| Default build_rules.py command list, priority / entrypoint. | |
| tuple | CUSTOM_SCRIPTS |
| Names of custom scripts and their priorities. | |
Module the handles python script execution.
Manages, and creates BuildObjects that are tailored for executing python scripts.
| makeprojects.python.create_build_rules_objects | ( | file_name, | |
| build_rules, | |||
| parms = None, | |||
| verbose = False ) |
Create BuildObjects from a loaded build_rules.py file.
After loading a build_rules.py module, this function will check for all entry points used by buildme such as prebuild and postbuild and it will create BuildPythonFile objects for every entry point found.
If there are no entry points in the module, this function will return an empty list.
| file_name | Name of the loaded file |
| build_rules | Loaded python module, usually build_rules.py |
| parms | Dictionary of parameters for the function call |
| verbose | True if verbose output is required |
| makeprojects.python.create_clean_rules_objects | ( | file_name, | |
| build_rules, | |||
| parms = None, | |||
| verbose = False ) |
Create BuildObjects from a loaded build_rules.py file.
After loading a build_rules.py module, this function will check for the entry point used by cleanme clean and it will create a BuildPythonFile objects for the entry point found.
If there are no entry point in the module, this function will return an empty list.
| file_name | Name of the loaded file |
| build_rules | Loaded python module, usually build_rules.py |
| parms | Dictionary of parameters for the function call |
| verbose | True if verbose output is required |
| makeprojects.python.create_simple_script_object | ( | file_name, | |
| entry = None, | |||
| verbose = False ) |
Create a BuildPythonFile for a script with a single entry point.
Given a filename and an name to an entry point, create and return a single BuildPythonFile entry in a list. The entry point must accept a single parameter of the directory that the script resides in and the function returns an integer error code or None.
If entry is None, the function will assume the entry point is named main.
| file_name | Pathname to the *.py to build |
| entry | Name of the function to call in the python file |
| verbose | True if verbose output |
| makeprojects.python.match | ( | file_name | ) |
Check if the filename is a type that this module supports.
| file_name | Filename to match |
| tuple makeprojects.python.BUILD_LIST |
Default build_rules.py command list, priority / entrypoint.
| tuple makeprojects.python.CUSTOM_SCRIPTS |
Names of custom scripts and their priorities.