Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/python-setuptools
diff options
context:
space:
mode:
Diffstat (limited to 'extra/python-setuptools')
-rw-r--r--extra/python-setuptools/PKGBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/extra/python-setuptools/PKGBUILD b/extra/python-setuptools/PKGBUILD
index 5f048dbd..cadd0ba7 100644
--- a/extra/python-setuptools/PKGBUILD
+++ b/extra/python-setuptools/PKGBUILD
@@ -17,8 +17,14 @@ eval "$(
unset checkdepends
unset check
-makedepends=(${makedepends[@]//python-setuptools/})
-makedepends=(${makedepends[@]//python2-setuptools/})
-depends=(${depends[@]//python-pyparsing/})
-depends=(${depends[@]//python2-pyparsing/})
-makedepends+=(python python2)
+# egg-infos are not installed correctly, create them before and install
+# them manually
+eval "$(
+ declare -f package | \
+ sed '
+ 6 i python setup.py egg_info \
+ rm -rf "$pkgdir"/usr/lib/python3.10/site-packages/setuptools-57.4.0-py3.10.egg-info \
+ mkdir "$pkgdir"/usr/lib/python3.10/site-packages/setuptools-57.4.0-py3.10.egg-info \
+ cp -R setuptools.egg-info "$pkgdir"/usr/lib/python3.10/site-packages/setuptools-57.4.0-py3.10.egg-info/.
+ '
+)"