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