Skip to content
Snippets Groups Projects
Commit 9b644c98 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/py3-parsing: rebuild against python 3.9

parent 599b0882
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
pkgname=py3-parsing pkgname=py3-parsing
_pkgname=pyparsing _pkgname=pyparsing
pkgver=2.4.7 pkgver=2.4.7
pkgrel=1 pkgrel=2
pkgdesc="An object-oriented approach to text processing" pkgdesc="An object-oriented approach to text processing"
url="https://github.com/pyparsing/pyparsing" url="https://github.com/pyparsing/pyparsing"
arch="noarch" arch="noarch"
...@@ -21,13 +21,16 @@ check() { ...@@ -21,13 +21,16 @@ check() {
package() { package() {
# Can't use setuptools since setuptools depends on this # Can't use setuptools since setuptools depends on this
mkdir -p "$pkgdir"/usr/lib/python3.8/site-packages local _site_pkgs="$(python3 -c 'import site; print(site.getsitepackages()[0])')"
local _py3ver=$(python3 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')
mkdir -p "$pkgdir/$_site_pkgs"
cp -rv $_pkgname.egg-info \ cp -rv $_pkgname.egg-info \
"$pkgdir"/usr/lib/python3.8/site-packages/$_pkgname-$pkgver-py3.8.egg-info "$pkgdir/$_site_pkgs"/$_pkgname-$pkgver-py$_py3ver.egg-info
cp -rv pyparsing.py "$pkgdir"/usr/lib/python3.8/site-packages/ cp -rv pyparsing.py "$pkgdir/$_site_pkgs"
python3 -m compileall -f -q "$pkgdir"/usr/lib/python3.8/site-packages/*.py python3 -m compileall -f -q "$pkgdir/$_site_pkgs"/*.py
} }
sha512sums="0b9f8f18907f65cb3af1b48ed57989e183f28d71646f2b2f820e772476f596ca15ee1a689f3042f18458206457f4683d10daa6e73dfd3ae82d5e4405882f9dd2 pyparsing-2.4.7.tar.gz" sha512sums="0b9f8f18907f65cb3af1b48ed57989e183f28d71646f2b2f820e772476f596ca15ee1a689f3042f18458206457f4683d10daa6e73dfd3ae82d5e4405882f9dd2 pyparsing-2.4.7.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment