summaryrefslogtreecommitdiff
path: root/python3-build/Pkgfile
blob: 0979305c77f9667def02616ad5f3b056f9768277 (plain)
    1 # Description: A simple, correct PEP517 package builder
    2 # URL: https://github.com/pypa/build
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: python3-packaging python3-pep517 python3-wheel python3-pyproject-hooks
    5 
    6 name=python3-build
    7 version=0.10.0
    8 release=1
    9 source=(https://pypi.python.org/packages/source/b/build/build-$version.tar.gz)
   10 
   11 build() {
   12   cd build-$version
   13 
   14   if ! prt-get isinst python3-flit-core; then
   15     for i in build flit-core installer; do
   16       /usr/bin/pip3 install --root=$SRC/tmp $i
   17     done
   18 
   19     PYTHON_VERSION=$(python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
   20     export PYTHONPATH=$SRC/tmp/usr/lib/python${PYTHON_VERSION}/site-packages
   21   fi
   22 
   23   /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
   24   /usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
   25 }

Generated by cgit