summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-01-01 20:38:28 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-01-01 20:38:28 +0100
commitee04d5812b223b1dea5a7d64b2846b9bfbbe65fb (patch)
tree6186c93232be1df199801cc0ead94f95136a1239
parent7dbe807145928b56fce9eee18bb1566147017e40 (diff)
downloadpackages-ee04d5812b223b1dea5a7d64b2846b9bfbbe65fb.tar.xz
extra/python-setuptools: another bootstrapping trial with correct egg-info
-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/.
+ '
+)"