[Notes] [Git][BuildStream/buildstream][master] 2 commits: Derive import plugin from Element instead of BuildElement



Title: GitLab

Chandan Singh pushed to branch master at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/plugins/elements/import.py
    ... ... @@ -28,17 +28,14 @@ some configuration data.
    28 28
     The empty configuration is as such:
    
    29 29
       .. literalinclude:: ../../../buildstream/plugins/elements/import.yaml
    
    30 30
          :language: yaml
    
    31
    -
    
    32
    -See :ref:`built-in functionality documentation <core_buildelement_builtins>` for
    
    33
    -details on common configuration options for build elements.
    
    34 31
     """
    
    35 32
     
    
    36 33
     import os
    
    37
    -from buildstream import Element, BuildElement, ElementError
    
    34
    +from buildstream import Element, ElementError
    
    38 35
     
    
    39 36
     
    
    40 37
     # Element implementation for the 'import' kind.
    
    41
    -class ImportElement(BuildElement):
    
    38
    +class ImportElement(Element):
    
    42 39
         # pylint: disable=attribute-defined-outside-init
    
    43 40
     
    
    44 41
         # This plugin has been modified to avoid the use of Sandbox.get_directory
    
    ... ... @@ -93,10 +90,6 @@ class ImportElement(BuildElement):
    93 90
             # And we're done
    
    94 91
             return '/output'
    
    95 92
     
    
    96
    -    def prepare(self, sandbox):
    
    97
    -        # We inherit a non-default prepare from BuildElement.
    
    98
    -        Element.prepare(self, sandbox)
    
    99
    -
    
    100 93
         def generate_script(self):
    
    101 94
             build_root = self.get_variable('build-root')
    
    102 95
             install_root = self.get_variable('install-root')
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]