summaryrefslogtreecommitdiff
path: root/buildstream/plugins/elements/script.py
Commit message (Collapse)AuthorAgeFilesLines
* buildstream/plugins/elements/script.py: Mark script as BST_VIRTUAL_DIRECTORYvalentindavid/script_virtual_directoryValentin David2019-01-091-0/+3
| | | | | | | ScriptElement does not use Sandbox.get_directory. It works using it with remote execution. Fixes #850
* Remove shebangs from python filesGökçen Nurlu2018-06-191-1/+0
| | | | Fixes #424
* doc: Added plugins as ToC elements instead of orphaned linksTristan Van Berkom2018-06-091-2/+3
| | | | | | | | | | | | o Now the page titles are declared in plugins, allowing for a more descriptive ToC o Makefile and plugin.rsttemplate updated to not produce the title, to no longer use `:orphan:` for plugin pages, and to ignore any private modules in the plugin directories. o Interestingly, now the docs will fail to build if you add a new plugin and forget to add it to the documentation.
* plugins: Disable attribute-defined-outside-init pylint errorTristan Van Berkom2018-04-201-0/+2
| | | | | Plugins set their attributes in configure(), because the constructor is not public API.
* Complete the work started to allow None as default in _yaml.node_get()Tristan Van Berkom2018-04-071-1/+1
| | | | | | | This completes the work which was started in commit 3ba544b80f9f268be8ffe62fc8589b30212ec4a2 which only went half way towards updating all the source code to be consistent and use the new semantic which allows None values.
* plugins/elements/script.py: Remove check for 'commands'Angelos Evripiotis2017-12-131-4/+0
| | | | | This isn't reachable as there's a default value in script.yaml, also it has an error in it - ElementError hasn't been declared in this scope.
* Make node_subst_member pass default values as positional argsJonathan Maw2017-11-141-1/+1
|
* plugins/elements/script.py: Issue #121 - Remove traces of pre-/post- commandsTristan Van Berkom2017-11-061-8/+3
|
* Add element plugin node validationsTristan Maat2017-09-141-0/+6
|
* script.py: Added documentationTristan Van Berkom2017-07-011-0/+6
| | | | | Added note that script elements may only depend on other elements as build dependencies.
* script.py: Allow layout members without an element.Tristan Van Berkom2017-06-141-1/+1
|
* Jonathan/enhance script elementJonathan Maw2017-06-061-113/+21
|
* script element: Make 'collect' keyword actually optionalSam Thursfield2017-05-241-3/+1
| | | | | | | | | Commit ca9a8837dd00a283fd8 added the 'collect' keyword with the intention of it being optional, but it was actually required. We now specify a default value so that it can be omitted. Also variables are now substituted so that the documented example of setting it to %{install-root} actually works.
* script element: interim hacksTristan Van Berkom2017-05-241-25/+29
| | | | | | | | | | | | | | | | | | | We will soon be refactoring this element to be more widely useful, in the meantime I needed the following changes: o Make staging of the input element optional o Dont mount the root read-only o Allow configuration of where to collect the output artifact This was needed for a straight forward use case where the user wants to A.) Stage something in the root B.) Modify that sysroot by running some commands C.) Collect the entire resulting sysroot as an artifact In this case, I needed to be able to run `dpkg --configure -a` in a sysroot and collect the result.
* script.py plugin: Stage input in the RUN scope, not BUILD scopeTristan Van Berkom2017-04-031-1/+1
|
* Added new script element.Tristan Van Berkom2017-04-021-0/+151
This allows quite manual transformations of input, allowing one to select a base for the shell and tooling to use and stage the input separately in order to create some output.