python3-lxml: rework build to avoid calling setup.py

This commit is contained in:
John McQuah 2023-11-09 18:33:58 +00:00
parent 671d1eb2a8
commit 15a85f44be
3 changed files with 39 additions and 65 deletions

View File

@ -2,35 +2,26 @@ drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/python3.10/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml-4.9.3-py3.10.egg-info/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3-py3.10.egg-info/PKG-INFO
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3-py3.10.egg-info/SOURCES.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3-py3.10.egg-info/dependency_links.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3-py3.10.egg-info/not-zip-safe
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3-py3.10.egg-info/requires.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3-py3.10.egg-info/top_level.txt
drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml-4.9.3.dist-info/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3.dist-info/LICENSE.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3.dist-info/LICENSES.txt
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3.dist-info/METADATA
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3.dist-info/RECORD
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3.dist-info/WHEEL
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml-4.9.3.dist-info/top_level.txt
drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/ElementInclude.py
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__init__.py
drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/__pycache__/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/ElementInclude.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/ElementInclude.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/__init__.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/__init__.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/_elementpath.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/_elementpath.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/builder.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/builder.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/cssselect.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/cssselect.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/doctestcompare.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/doctestcompare.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/pyclasslookup.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/pyclasslookup.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/sax.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/sax.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/usedoctest.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/usedoctest.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/ElementInclude.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/__init__.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/_elementpath.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/builder.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/cssselect.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/doctestcompare.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/pyclasslookup.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/sax.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/__pycache__/usedoctest.cpython-310.opt-2.pyc
-rwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/_elementpath.cpython-310-x86_64-linux-gnu.so
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/_elementpath.py
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/apihelpers.pxi
@ -52,32 +43,19 @@ drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/html/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/ElementSoup.py
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__init__.py
drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/ElementSoup.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/ElementSoup.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/__init__.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/__init__.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/_diffcommand.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/_diffcommand.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/_html5builder.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/_html5builder.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/_setmixin.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/_setmixin.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/builder.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/builder.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/clean.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/clean.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/defs.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/defs.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/diff.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/diff.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/formfill.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/formfill.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/html5parser.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/html5parser.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/soupparser.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/soupparser.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/usedoctest.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/usedoctest.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/ElementSoup.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/__init__.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/_diffcommand.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/_html5builder.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/_setmixin.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/builder.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/clean.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/defs.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/diff.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/formfill.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/html5parser.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/soupparser.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/__pycache__/usedoctest.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/_diffcommand.py
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/_html5builder.py
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/html/_setmixin.py
@ -95,8 +73,7 @@ drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/includes/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/includes/__init__.pxd (EMPTY)
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/includes/__init__.py (EMPTY)
drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/includes/__pycache__/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/includes/__pycache__/__init__.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/includes/__pycache__/__init__.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/includes/__pycache__/__init__.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/includes/c14n.pxd
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/includes/config.pxd
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/includes/dtdvalid.pxd
@ -117,8 +94,7 @@ drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/includes/__pycache__/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/isoschematron/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/isoschematron/__init__.py
drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/isoschematron/__pycache__/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/isoschematron/__pycache__/__init__.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/isoschematron/__pycache__/__init__.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/isoschematron/__pycache__/__init__.cpython-310.opt-2.pyc
drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/isoschematron/resources/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/lxml/isoschematron/resources/rng/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/lxml/isoschematron/resources/rng/iso-schematron.rng

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF39GBZQ6LLkZl78aOKZWcwIv1ARrJHI+RZ5xcHE3z9HM8LBa1s6dcJs5kkKh6zS/3jK9P/kiNc/D7rmFCbbVt4Qg=
SHA256 (Pkgfile) = c60589d1ac080908c9760777df35313c99f8f66c2370df492a8aa911a1d6166f
SHA256 (.footprint) = ad32cbd1f0f28e1b3b49b3c3305bfb70fc9b9fe702a1b18900bba004e82ca5d2
RWSagIOpLGJF32lai9iAURl+6qGoKEsrH+TO3sgVSukPNOsq2fmCXhGRtALqhtOwwXn6a326sC8pVWAuFMLP0yTY9GkUTaSvXwE=
SHA256 (Pkgfile) = 8edc184cdda9e24e2046a9aad2a44359b303521003e9382055e9ec525dff691e
SHA256 (.footprint) = 4f9f31a93ea649d2844cb9996b3cea88ea6e55d8fbce7c9ef62a35fbd09d9d0a
SHA256 (lxml-4.9.3.tar.gz) = 48628bd53a426c9eb9bc066a923acaa0878d1e86129fd5359aee99285f4eed9c

View File

@ -4,16 +4,14 @@
# Depends on: python3-beautifulsoup4 python3-cssselect python3-cython python3-html5lib libxslt
name=python3-lxml
_name=${name#*-}
_name=${name#python3-}
version=4.9.3
release=1
release=2
source=(https://github.com/$_name/$_name/releases/download/$_name-$version/$_name-$version.tar.gz)
build() {
cd $_name-$version
cd $_name-$version
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install \
--prefix=/usr --root=$PKG --optimize=1
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
}