diff options
author | Benjamin Schubert <contact@benschubert.me> | 2020-05-08 20:10:25 +0100 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2020-05-11 14:53:43 +0000 |
commit | 2b8c2dc6cf3be4b684b0c9b58dea26a865135377 (patch) | |
tree | cb1fe350d4f51e519f21ecdc6082b05984bc76f6 /src/buildstream | |
parent | c8ed8f9ef6879fd4c247e69013a3a81b9f9c5025 (diff) | |
download | buildstream-2b8c2dc6cf3be4b684b0c9b58dea26a865135377.tar.gz |
pip.py: Remove the pip element, it is in experimental
The pip element was copied already to bst-plugins-experimental.
We don't need to have two copies of it.
Diffstat (limited to 'src/buildstream')
-rw-r--r-- | src/buildstream/plugins/elements/pip.py | 51 | ||||
-rw-r--r-- | src/buildstream/plugins/elements/pip.yaml | 36 |
2 files changed, 0 insertions, 87 deletions
diff --git a/src/buildstream/plugins/elements/pip.py b/src/buildstream/plugins/elements/pip.py deleted file mode 100644 index 5f805f460..000000000 --- a/src/buildstream/plugins/elements/pip.py +++ /dev/null @@ -1,51 +0,0 @@ -# -# Copyright (C) 2017 Mathieu Bridon -# -# 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: -# Mathieu Bridon <bochecha@daitauha.fr> - -""" -pip - Pip build element -======================= -A :mod:`BuildElement <buildstream.buildelement>` implementation for installing -Python modules with pip - -The pip default configuration: - .. literalinclude:: ../../../src/buildstream/plugins/elements/pip.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 'pip' kind. -class PipElement(BuildElement): - # pylint: disable=attribute-defined-outside-init - - BST_MIN_VERSION = "2.0" - - # 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 PipElement diff --git a/src/buildstream/plugins/elements/pip.yaml b/src/buildstream/plugins/elements/pip.yaml deleted file mode 100644 index 294d4ad9a..000000000 --- a/src/buildstream/plugins/elements/pip.yaml +++ /dev/null @@ -1,36 +0,0 @@ -# Pip default configurations - -variables: - - pip: pip - pip-flags: | - %{pip} install --no-deps --root=%{install-root} --prefix=%{prefix} - pip-install-package: | - %{pip-flags} %{conf-root} - pip-download-dir: | - .bst_pip_downloads - pip-install-dependencies: | - if [ -e %{pip-download-dir} ]; then %{pip-flags} %{pip-download-dir}/*; fi - -config: - - configure-commands: [] - build-commands: [] - - # Commands for installing the software into a - # destination folder - # - install-commands: - - | - %{pip-install-package} - - | - %{pip-install-dependencies} - - # Commands for stripping debugging information out of - # installed binaries - # - strip-commands: - - | - %{strip-binaries} - - | - %{fix-pyc-timestamps} |