summaryrefslogtreecommitdiff
path: root/buildstream/plugins/elements/distutils.yaml
blob: cec7da6e9699ea5a353c56069d21977aa2abedb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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}