summaryrefslogtreecommitdiff
path: root/python3-pexpect/Pkgfile
blob: ba76b081299b161e72dbe80e49fc5d6b9756cea8 (plain)
    1 # Description: Pexpect makes Python a better tool for controlling other applications
    2 # URL: https://github.com/pexpect/pexpect
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: python3-ptyprocess
    5 
    6 name=python3-pexpect
    7 version=4.8.0
    8 release=1
    9 source=(https://github.com/pexpect/pexpect/archive/$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   cd pexpect-$version
   13   _pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
   14 
   15   if prt-get isinst python3-flit-core; then
   16     /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
   17     /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
   18   else
   19     /usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps pexpect
   20   fi
   21 
   22   rm -rf $PKG/usr/lib/python$_pyver/site-packages/pexpect-$version.dist-info/{INSTALLER,REQUESTED}
   23 }

Generated by cgit