|
Makeprojects
|
Module that contains the code for the command line buildme. More...
Functions | |
| create_parser () | |
| Create the parser to process the command line for buildme. | |
| add_build_rules (projects, file_name, args, build_rules=None) | |
| Add a build_rules.py to the build list. | |
| add_project (projects, processed, file_name, args) | |
| Detect the project type and add it to the list. | |
| process_projects (results, projects, args) | |
| Process a list of projects. | |
| process_files (results, processed, files, args) | |
| Process a list of files. | |
| process_directories (results, processed, directories, args) | |
| Process a list of directories. | |
| process_dependencies (results, processed, dependencies, args) | |
| Process a mixed string list of both directories and files. | |
| main (working_directory=None, args=None) | |
| Command line shell for buildme. | |
Module that contains the code for the command line buildme.
Scan the current directory and all project files will be built.
Full documentation is here, 👷 Buildme
| makeprojects.buildme.add_build_rules | ( | projects, | |
| file_name, | |||
| args, | |||
| build_rules = None ) |
Add a build_rules.py to the build list.
Given a build_rules.py to parse, check it for a BUILD_LIST and use that for scanning for functions to call. If BUILD_LIST doesn't exist, use makeprojects.python.BUILD_LIST instead.
All valid entries will be appended to the projects list.
| projects | List of projects to build. |
| file_name | Pathname to the build_rules.py file. |
| args | Args for determining verbosity for output. |
| build_rules | Preloaded build_rules.py object. |
| makeprojects.buildme.add_project | ( | projects, | |
| processed, | |||
| file_name, | |||
| args ) |
Detect the project type and add it to the list.
| projects | List of projects to build. |
| processed | List of directories already processed. |
| file_name | Pathname to the build_rules.py file. |
| args | Args for determining verbosity for output. |
| makeprojects.buildme.create_parser | ( | ) |
Create the parser to process the command line for buildme.
The returned object has these member variables
| makeprojects.buildme.main | ( | working_directory = None, | |
| args = None ) |
Command line shell for buildme.
Entry point for the program buildme, this function will either get the parameters from sys.argv or the paramater args.
| working_directory | Directory to operate on, or None. |
| args | Command line to use instead of sys.argv. |
| makeprojects.buildme.process_dependencies | ( | results, | |
| processed, | |||
| dependencies, | |||
| args ) |
Process a mixed string list of both directories and files.
Iterate over the dependencies list and test each object if it's a directory, and if so, dispatch to the directory handler, otherwise, process as a file.
| results | list object to append BuildError objects |
| processed | List of directories already processed. |
| dependencies | iterable list of files/directories to process |
| args | parsed argument list for verbosity |
| makeprojects.buildme.process_directories | ( | results, | |
| processed, | |||
| directories, | |||
| args ) |
Process a list of directories.
| results | list object to append BuildError objects |
| processed | List of directories already processed. |
| directories | iterable list of directories to process |
| args | parsed argument list for verbosity |
| makeprojects.buildme.process_projects | ( | results, | |
| projects, | |||
| args ) |
Process a list of projects.
Sort the projects by priority and build all of them.