diff options
Diffstat (limited to 'src/buildstream/plugins/elements/distutils.yaml')
-rw-r--r-- | src/buildstream/plugins/elements/distutils.yaml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/buildstream/plugins/elements/distutils.yaml b/src/buildstream/plugins/elements/distutils.yaml new file mode 100644 index 000000000..cec7da6e9 --- /dev/null +++ b/src/buildstream/plugins/elements/distutils.yaml @@ -0,0 +1,49 @@ +# 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} |