diff options
author | Javier Jardón <jjardon@gnome.org> | 2019-09-11 21:07:02 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-09-12 14:22:24 +0000 |
commit | d61992026d40d80a1ca3e4876eeaa4462a007dc0 (patch) | |
tree | 71b700fc9f8d1b45c75aefc43d76ced7115ce286 /src/buildstream/plugins | |
parent | 093d7a5bb101460edd32de11daa21d65252a8d85 (diff) | |
download | buildstream-d61992026d40d80a1ca3e4876eeaa4462a007dc0.tar.gz |
Use distutils plugin from bst-plugins-experimental
Diffstat (limited to 'src/buildstream/plugins')
-rw-r--r-- | src/buildstream/plugins/elements/distutils.py | 51 | ||||
-rw-r--r-- | src/buildstream/plugins/elements/distutils.yaml | 49 |
2 files changed, 0 insertions, 100 deletions
diff --git a/src/buildstream/plugins/elements/distutils.py b/src/buildstream/plugins/elements/distutils.py deleted file mode 100644 index 4b2c1e2f4..000000000 --- a/src/buildstream/plugins/elements/distutils.py +++ /dev/null @@ -1,51 +0,0 @@ -# -# Copyright (C) 2016 Codethink Limited -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library. If not, see <http://www.gnu.org/licenses/>. -# -# Authors: -# Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> - -""" -distutils - Python distutils element -==================================== -A :mod:`BuildElement <buildstream.buildelement>` implementation for using -python distutils - -The distutils default configuration: - .. literalinclude:: ../../../src/buildstream/plugins/elements/distutils.yaml - :language: yaml - -See :ref:`built-in functionality documentation <core_buildelement_builtins>` for -details on common configuration options for build elements. -""" - -from buildstream import BuildElement, SandboxFlags - - -# Element implementation for the python 'distutils' kind. -class DistutilsElement(BuildElement): - # Supports virtual directories (required for remote execution) - BST_VIRTUAL_DIRECTORY = True - - # Enable command batching across prepare() and assemble() - def configure_sandbox(self, sandbox): - super().configure_sandbox(sandbox) - self.batch_prepare_assemble(SandboxFlags.ROOT_READ_ONLY, - collect=self.get_variable('install-root')) - - -# Plugin entry point -def setup(): - return DistutilsElement diff --git a/src/buildstream/plugins/elements/distutils.yaml b/src/buildstream/plugins/elements/distutils.yaml deleted file mode 100644 index cec7da6e9..000000000 --- a/src/buildstream/plugins/elements/distutils.yaml +++ /dev/null @@ -1,49 +0,0 @@ -# Default python distutils configuration - -variables: - - # When building for python2 distutils, simply - # override this in the element declaration - python: python3 - - python-build: | - - %{python} %{conf-root}/setup.py build - - install-args: | - - --prefix "%{prefix}" \ - --root "%{install-root}" - - python-install: | - - %{python} %{conf-root}/setup.py install %{install-args} - - -config: - - # Commands for configuring the software - # - configure-commands: [] - - # Commands for building the software - # - build-commands: - - | - %{python-build} - - # Commands for installing the software into a - # destination folder - # - install-commands: - - | - %{python-install} - - # Commands for stripping debugging information out of - # installed binaries - # - strip-commands: - - | - %{strip-binaries} - - | - %{fix-pyc-timestamps} |