Skip to contentSkip to conversation

python-six: add host variant

PATCH New Julien Floret 3 participants 3 messages Sep 13, 2017 – Sep 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python-six: add host variant

While currently there is no in-tree Buildroot package which depends on host-python-six, it can be needed to build external packages.

---
 package/Config.in.host            | 1 +
 package/python-six/Config.in.host | 9 +++++++++
 package/python-six/python-six.mk  | 1 +
 3 files changed, 11 insertions(+)
 create mode 100644 package/python-six/Config.in.host
package/Config.in.host +1 -0
index c5a852b858a4..e2717ae3b541 100644
@@ -36,6 +36,7 @@ menu "Host utilities"
 	source "package/pru-software-support/Config.in.host"
 	source "package/pwgen/Config.in.host"
 	source "package/python-lxml/Config.in.host"
+	source "package/python-six/Config.in.host"
 	source "package/qemu/Config.in.host"
 	source "package/raspberrypi-usbboot/Config.in.host"
 	source "package/rauc/Config.in.host"
package/python-six/Config.in.host new file +9 -0
new file mode 100644
index 000000000000..1d37e768ae29
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HOST_PYTHON_SIX
+	bool "host python-six"
+	help
+	  Six is a Python 2 and 3 compatibility library. It provides
+	  utility functions for smoothing over the differences between
+	  the Python versions with the goal of writing Python code that
+	  is compatible on both Python versions.
+
+	  http://pythonhosted.org/six
package/python-six/python-six.mk +1 -0
index 0edefe346fdb..850f9340d322 100644
@@ -12,3 +12,4 @@ PYTHON_SIX_LICENSE = MIT
 PYTHON_SIX_LICENSE_FILES = LICENSE
 
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 1 line
2.13.1
#1 lore raw

PATCH v2 1/1 python-six: add host variant

Quoted 7 lines

From: "Julien Floret" <[email protected]>
To: buildroot at buildroot.org
Sent: Wednesday, September 13, 2017 10:20:55 AM
Subject: [Buildroot] [PATCH v2] python-six: add host variant

While currently there is no in-tree Buildroot package which depends on host-python-six, it can be needed to build external packages.

It is required to build host-python-protobuf, which in its turn is necessary to build one of our (DATACOM) proprietary packages. So far we have been keeping host-python-{protobuf,six} as local patches, so your change is very helpful. Thanks!

Quoted 1 line

---8<---

Signature · 4 lines
Carlos Santos (Casantos) - DATACOM, P&D
?The greatest triumph that modern PR can offer is the transcendent 
success of having your words and actions judged by your reputation, 
rather than the other way about.? ? Christopher Hitchens
#2 lore raw

PATCH v2 1/1 python-six: add host variant

In reply to Julien Floret
Quoted 4 lines · Julien Floret

While currently there is no in-tree Buildroot package which depends on host-python-six, it can be needed to build external packages.

I'm very cautious adding host packages, but I guess python-six is something
extremely useful for custom python scripts that you want to run with the same Python version as on the target.

Therefore, applied to master, thanks.

Regards,
Arnout

Quoted 44 lines
---
 package/Config.in.host            | 1 +
 package/python-six/Config.in.host | 9 +++++++++
 package/python-six/python-six.mk  | 1 +
 3 files changed, 11 insertions(+)
 create mode 100644 package/python-six/Config.in.host
package/Config.in.host +1 -0
index c5a852b858a4..e2717ae3b541 100644
@@ -36,6 +36,7 @@ menu "Host utilities"
 	source "package/pru-software-support/Config.in.host"
 	source "package/pwgen/Config.in.host"
 	source "package/python-lxml/Config.in.host"
+	source "package/python-six/Config.in.host"
 	source "package/qemu/Config.in.host"
 	source "package/raspberrypi-usbboot/Config.in.host"
 	source "package/rauc/Config.in.host"
package/python-six/Config.in.host new file +9 -0
new file mode 100644
index 000000000000..1d37e768ae29
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HOST_PYTHON_SIX
+	bool "host python-six"
+	help
+	  Six is a Python 2 and 3 compatibility library. It provides
+	  utility functions for smoothing over the differences between
+	  the Python versions with the goal of writing Python code that
+	  is compatible on both Python versions.
+
+	  http://pythonhosted.org/six
package/python-six/python-six.mk +1 -0
index 0edefe346fdb..850f9340d322 100644
@@ -12,3 +12,4 @@ PYTHON_SIX_LICENSE = MIT
 PYTHON_SIX_LICENSE_FILES = LICENSE
 
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF