summaryrefslogtreecommitdiff
path: root/repo/python-setuptools/python-setuptools.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-10-22 16:29:29 +0100
committerdavidovski <david@davidovski.xyz>2022-10-22 16:29:29 +0100
commitf99268f797c120a24030a573ef22813cd018beb5 (patch)
treeee18857a5eda7bc94286e3924dc2209aea7b92c4 /repo/python-setuptools/python-setuptools.xibuild
parent95545d88b997a17ff03bb164af33c33e2a12d693 (diff)
Added unrar
Diffstat (limited to 'repo/python-setuptools/python-setuptools.xibuild')
-rw-r--r--repo/python-setuptools/python-setuptools.xibuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/repo/python-setuptools/python-setuptools.xibuild b/repo/python-setuptools/python-setuptools.xibuild
new file mode 100644
index 0000000..f0e396a
--- /dev/null
+++ b/repo/python-setuptools/python-setuptools.xibuild
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+NAME="python-setuptools"
+DESC="Collection of enhancements to the Python3 distutils"
+
+MAKEDEPS="python"
+
+PKG_VER=65.3.0
+SOURCE="https://github.com/pypa/setuptools.git"
+
+#prepare() {
+
+ # Unbundle
+ # rm -rf pkg_resources/extern pkg_resources/_vendor \
+ # setuptools/extern setuptools/_vendor
+
+ # Upstream devendoring logic is badly broken, see:
+ # https://bugs.archlinux.org/task/58670
+ # https://github.com/pypa/pip/issues/5429
+ # https://github.com/pypa/setuptools/issues/1383
+ # The simplest fix is to simply rewrite import paths to use the canonical
+ # location in the first place
+ # for _module in setuptools pkg_resources '' ; do
+ # find . -name \*.py -exec sed -i \
+ # -e 's/from '$_module.extern' import/import/' \
+ # -e 's/from '$_module.extern'./from /' \
+ # -e 's/import '$_module.extern'./import /' \
+ # -e "s/__import__('$_module.extern./__import__('/" \
+ # {} +
+ # done
+
+ # Fix post-release tag
+ #sed -e '/tag_build = .post/d' \
+ #-e '/tag_date = 1/d' \
+ #-i setup.cfg
+#}
+
+build() {
+ python3 setup.py build
+}
+
+package() {
+ # Otherwise it complains that build/scripts-3.10 cannot be found
+ # no other changes noted
+ mkdir -p build/scripts-3.10
+
+ python3 setup.py install --root="$PKG_DEST" --skip-build
+}
+