distutils - Python distutils elementΒΆ

A BuildElement implementation for using python distutils

The distutils default configuration:
# 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}

See built-in functionality documentation for details on common configuration options for build elements.