Skip to contentSkip to conversation

python-pip: new package

PATCH New Adam Duskett 2 participants 2 messages Aug 6, 2018 – Aug 9, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-pip: new package

A useful tool for managing and installing python packages.

---
 DEVELOPERS                         |  1 +
 package/Config.in                  |  1 +
 package/python-pip/Config.in       |  6 ++++++
 package/python-pip/python-pip.hash |  5 +++++
 package/python-pip/python-pip.mk   | 14 ++++++++++++++
 5 files changed, 27 insertions(+)
 create mode 100644 package/python-pip/Config.in
 create mode 100644 package/python-pip/python-pip.hash
 create mode 100644 package/python-pip/python-pip.mk
DEVELOPERS +1 -0
index 215506c71c..32bebecbb9 100644
@@ -53,6 +53,7 @@ F:	package/nginx-naxsi/
 F:	package/policycoreutils/
 F:	package/python-flask-sqlalchemy/
 F:	package/python-mutagen/
+F:	package/python-pip/
 F:	package/python-psycopg2/
 F:	package/python-sqlalchemy/
 F:	package/python-visitor/
package/Config.in +1 -0
index f5a17492c7..f7d28a2d3a 100644
@@ -874,6 +874,7 @@ menu "External python modules"
 	source "package/python-pexpect/Config.in"
 	source "package/python-pickleshare/Config.in"
 	source "package/python-pillow/Config.in"
+	source "package/python-pip/Config.in"
 	source "package/python-portend/Config.in"
 	source "package/python-posix-ipc/Config.in"
 	source "package/python-priority/Config.in"
package/python-pip/Config.in new file +6 -0
new file mode 100644
index 0000000000..4fcd55e5ab
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_PIP
+	bool "python-pip"
+	help
+	  The PyPA recommended tool for installing Python packages.
+
+	  https://pip.pypa.io/
package/python-pip/python-pip.hash new file +5 -0
new file mode 100644
index 0000000000..c9b574a6dd
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/pip/json
+md5	52f75ceb21e96c258f289859a2996b60  pip-18.0.tar.gz
+sha256	a0e11645ee37c90b40c46d607070c4fd583e2cd46231b1c06e389c5e814eed76  pip-18.0.tar.gz
+# Locally computed sha256 checksums
+sha256	391a8784e319dae5431477d4cc9bc504fc5d71fd9e89e1c80f1cd3855f5d7cfa  LICENSE.txt
package/python-pip/python-pip.mk new file +14 -0
new file mode 100644
index 0000000000..0a0dce5bca
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-pip
+#
+################################################################################
+
+PYTHON_PIP_VERSION = 18.0
+PYTHON_PIP_SOURCE = pip-$(PYTHON_PIP_VERSION).tar.gz
+PYTHON_PIP_SITE = https://files.pythonhosted.org/packages/69/81/52b68d0a4de760a2f1979b0931ba7889202f302072cc7a0d614211bc7579
+PYTHON_PIP_SETUP_TYPE = setuptools
+PYTHON_PIP_LICENSE = MIT
+PYTHON_PIP_LICENSE_FILES = LICENSE.txt
+
+$(eval $(python-package))
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 python-pip: new package

Hello,

Quoted 13 lines · Adam Duskett

A useful tool for managing and installing python packages.

---
 DEVELOPERS                         |  1 +
 package/Config.in                  |  1 +
 package/python-pip/Config.in       |  6 ++++++
 package/python-pip/python-pip.hash |  5 +++++
 package/python-pip/python-pip.mk   | 14 ++++++++++++++
 5 files changed, 27 insertions(+)
 create mode 100644 package/python-pip/Config.in
 create mode 100644 package/python-pip/python-pip.hash
 create mode 100644 package/python-pip/python-pip.mk

I don't find python-pip very useful, because it allows the installation of Python packages at runtime on the target, while normally the principle of Buildroot is that everything is built/installed at build time, on the build machine.

But perhaps this may be useful in some situations, and the package is simple enough, so I've applied to next. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com