Debian Codegraph @

src/buildstream_plugins/elements/setuptools.py

raw
1 #
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
5 #
6 # http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13 #
14 # Authors:
15 # Tristan Van Berkom <[email protected]>
16
17 #
18 # This plugin was originally developped in the https://gitlab.com/BuildStream/bst-plugins-experimental/
19 # repository (previously named 'distutils') and was copied from a60426126e5bec2d630fcd889a9f5af13af00ea6
20 #
21
22 """
23 setuptools - Python setuptools element
24 ======================================
25 A `BuildElement
26 <https://docs.buildstream.build/master/buildstream.buildelement.html#module-buildstream.buildelement>`_
27 implementation for using python setuptools
28
29 The setuptools default configuration:
30 .. literalinclude:: ../../../src/buildstream_plugins/elements/setuptools.yaml
31 :language: yaml
32
33 See `built-in functionality documentation
34 <https://docs.buildstream.build/master/buildstream.buildelement.html#core-buildelement-builtins>`_ for
35 details on common configuration options for build elements.
36 """
37
38 from buildstream import BuildElement
39
40
41 # Element implementation for the python 'setuptools' kind.
42 class SetuptoolsElement(BuildElement):
43
44 BST_MIN_VERSION = "2.0"
45
46
47 # Plugin entry point
48 def setup():
49 return SetuptoolsElement