python3-ptyprocess: -> 0.7.0; use pip to bootstrap, otherwise use python3-installer instead of setuptools

This commit is contained in:
Tim Biermann 2022-07-10 18:06:19 +02:00
parent a6ef9415e6
commit f98a2db662
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 20 additions and 12 deletions

View File

@ -2,17 +2,17 @@ drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/python3.9/
drwxr-xr-x root/root usr/lib/python3.9/site-packages/
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess-0.7.0-py3.9.egg-info
drwxr-xr-x root/root usr/lib/python3.9/site-packages/ptyprocess-0.7.0.dist-info/
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess-0.7.0.dist-info/LICENSE
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess-0.7.0.dist-info/METADATA
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess-0.7.0.dist-info/RECORD
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess-0.7.0.dist-info/WHEEL
drwxr-xr-x root/root usr/lib/python3.9/site-packages/ptyprocess/
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/__init__.py
drwxr-xr-x root/root usr/lib/python3.9/site-packages/ptyprocess/__pycache__/
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/__pycache__/__init__.cpython-39.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/__pycache__/__init__.cpython-39.pyc
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/__pycache__/_fork_pty.cpython-39.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/__pycache__/_fork_pty.cpython-39.pyc
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/__pycache__/ptyprocess.cpython-39.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/__pycache__/ptyprocess.cpython-39.pyc
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/__pycache__/util.cpython-39.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/__pycache__/util.cpython-39.pyc
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/_fork_pty.py
-rw-r--r-- root/root usr/lib/python3.9/site-packages/ptyprocess/ptyprocess.py

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3yU5JTx59n+7F0+ZFP+hAUERH2+DOP7jJHu2CRl5xsLPhgxOdlPMGjKWBA/AUUyJIAOLlDEffMV0RQ4m8o39/wM=
SHA256 (Pkgfile) = 10918cf75a122062f7b09957a2b8662d92efb58604cae2b63161ec260154f1b9
SHA256 (.footprint) = 4b0779cdb438b6c35952fca1e470a80fc9d7f4892a189a204b12aac36bda5d4a
RWSagIOpLGJF39+hNK4qo33i+LQZsDgC5dbjAfpYKvQ2VzTSAFIcxPKtT3qR+DD3HNgvRtfozaJ7T34rk7eWKfn3XJ1Nac0THAU=
SHA256 (Pkgfile) = 362d699a28fab34e5e13d7de59f75477d32a037318eb6f772eabe3a995756ed0
SHA256 (.footprint) = 36edd88f95852c0f49dab36c111c7dbf10bbf933a3d1060c131747f03d2dc219
SHA256 (ptyprocess-0.7.0.tar.gz) = 5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220

View File

@ -2,6 +2,7 @@
# URL: https://github.com/pexpect/ptyprocess
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-setuptools
# Optional: python3-flit-core
name=python3-ptyprocess
version=0.7.0
@ -10,8 +11,15 @@ source=(https://pypi.io/packages/source/p/ptyprocess/ptyprocess-$version.tar.gz)
build() {
cd ptyprocess-$version
#/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --prefix=/usr \
--root=$PKG \
-O1
_pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
if prt-get isinst python3-flit-core; then
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
else
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps ptyprocess
fi
rm -rf $PKG/usr/lib/python$_pyver/site-packages/ptyprocess-$version.dist-info/{INSTALLER,REQUESTED}
}