Browse Source

community/python-pip-bootstrap

Andreas Baumann 1 year ago
parent
commit
9753554019

+ 26
- 0
community/python-pip-bootstrap/PKGBUILD View File

@@ -0,0 +1,26 @@
1
+# Maintainer: Andreas Baumann <mail@andreasbaumann.cc>
2
+
3
+pkgname=('python-pip-bootstrap' 'python2-pip-bootstrap')
4
+pkgver=0.0.1
5
+pkgrel=1
6
+pkgdesc="bootstap pip and setuptools for bootstrapping python"
7
+arch=(i486 'i686' 'x86_64' 'armv6h' 'armv7h')
8
+url="https://bootstrap.pypa.io/"
9
+source=("https://bootstrap.pypa.io/get-pip.py")
10
+sha512sums=('db419d080e0658b656ed9f6ae67adf51a0e2c698c8854b8d589f14756b975985b79be457e845260941519dda7399b027251cb71fe00691df1043260cc3e16d28')
11
+
12
+package_python-pip-bootstrap() {
13
+	depends=('python')
14
+	install=install.sh
15
+
16
+	mkdir -p "${pkgdir}/usr/bin"
17
+	cp "${srcdir}/get-pip.py" "${pkgdir}/usr/bin/."
18
+}
19
+
20
+package_python2-pip-bootstrap() {
21
+	depends=('python2')
22
+	install=install2.sh
23
+
24
+	mkdir -p "${pkgdir}/usr/bin"
25
+	cp "${srcdir}/get-pip.py" "${pkgdir}/usr/bin/get-pip2.py"
26
+}

+ 4
- 0
community/python-pip-bootstrap/install.sh View File

@@ -0,0 +1,4 @@
1
+post_install() {
2
+	echo "Bootstrapping python pip, setuptools and wheel.."
3
+	python /usr/bin/get-pip.py
4
+}

+ 4
- 0
community/python-pip-bootstrap/install2.sh View File

@@ -0,0 +1,4 @@
1
+post_install() {
2
+	echo "Bootstrapping python2 pip, setuptools and wheel.."
3
+	python2 /usr/bin/get-pip2.py
4
+}