Skip to contentSkip to conversation

python-pyxml: new package

PATCH Superseded Arnout Vandecappelle (Essensium/Mind) 2 participants 4 messages May 1, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v7 1/1 python-pyxml: new package

From: Clayton Shotwell <[email protected]>

It always uses its own copy of pyexpat, but we can at least make it use buildroot's expat.so.

---
Changes:
v7: use bundled pyexpat, fix using external expat, remove
double spaces from help text (Arnout)
v6: remove host-python dependency, fix formatting (Thomas Petazzoni)
v5: refresh the patch, so it can applied without errors
v3: updated to use python package type (Matt W)
added hash file (Matt W)

---
 package/Config.in                                  |  1 +
 package/python-pyxml/Config.in                     | 11 +++++++++++
 package/python-pyxml/python-xml.hash               |  2 ++
 package/python-pyxml/python-xml.mk                 | 17 +++++++++++++++++
 toolchain/toolchain-external/toolchain-external.mk |  8 --------
 5 files changed, 31 insertions(+), 8 deletions(-)
 create mode 100644 package/python-pyxml/Config.in
 create mode 100644 package/python-pyxml/python-xml.hash
 create mode 100644 package/python-pyxml/python-xml.mk
package/Config.in +1 -0
index 4e20e4d..8b02486 100644
@@ -629,6 +629,7 @@ menu "external python modules"
 	source "package/python-pysnmp-mibs/Config.in"
 	source "package/python-pyusb/Config.in"
 	source "package/python-pyxb/Config.in"
+	source "package/python-pyxml/Config.in"
 	source "package/python-pyzmq/Config.in"
 	source "package/python-requests/Config.in"
 	source "package/python-rtslib-fb/Config.in"
package/python-pyxml/Config.in new file +11 -0
new file mode 100644
index 0000000..e6d20fa
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_PYXML
+	bool "python-pyxml"
+	depends on BR2_PACKAGE_PYTHON
+	help
+	  This is the Python XML package. The distribution contains a
+	  validating XML parser, an implementation of the SAX and DOM
+	  programming interfaces, an interface to the Expat parser (and the
+	  Expat parser itself), and a C helper module that can speed up
+	  xmllib.py by a factor of 5. There's even documentation!
+
+	  http://pyxml.sourceforge.net/topics/index.html
package/python-pyxml/python-xml.hash new file +2 -0
new file mode 100644
index 0000000..df98c46
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 9fab66f9584fb8e67aebd8745a5c97bf1c5a2e2e461adf68862bcec64e448c13  PyXML-0.8.4.tar.gz
package/python-pyxml/python-xml.mk new file +17 -0
new file mode 100644
index 0000000..bfe2c89
@@ -0,0 +1,17 @@
+################################################################################
+#
+# python-pyxml
+#
+################################################################################
+
+PYTHON_PYXML_VERSION = 0.8.4
+PYTHON_PYXML_SOURCE = PyXML-$(PYTHON_PYXML_VERSION).tar.gz
+PYTHON_PYXML_SITE = http://downloads.sourceforge.net/project/pyxml/pyxml/0.8.4/
+PYTHON_PYXML_LICENSE = BSD-3c
+PYTHON_PYXML_LICENSE_FILES = LICENSE
+PYTHON_PYXML_SETUP_TYPE = distutils
+PYTHON_PYXML_DEPENDENCIES = expat
+PYTHON_PYXML_BUILD_OPTS = --with-libexpat=$(STAGING_DIR)/usr
+PYTHON_PYXML_INSTALL_TARGET_OPTS = --with-libexpat=$(STAGING_DIR)/usr
+
+$(eval $(python-package))
toolchain/toolchain-external/toolchain-external.mk +0 -8
index fd796a0..c38692a 100644
@@ -367,17 +367,9 @@ TOOLCHAIN_EXTERNAL_SOURCE = crossx86-i486-linux-musl-$(TOOLCHAIN_EXTERNAL_VERSIO
 else ifeq ($(BR2_microblazebe),y)
 TOOLCHAIN_EXTERNAL_SOURCE = crossx86-microblaze-linux-musl-$(TOOLCHAIN_EXTERNAL_VERSION).tar.xz
 else ifeq ($(BR2_mips),y)
-ifeq ($(BR2_SOFT_FLOAT),y)
-TOOLCHAIN_EXTERNAL_SOURCE = crossx86-mips-sf-linux-musl-$(TOOLCHAIN_EXTERNAL_VERSION).tar.xz
-else
 TOOLCHAIN_EXTERNAL_SOURCE = crossx86-mips-linux-musl-$(TOOLCHAIN_EXTERNAL_VERSION).tar.xz
-endif # BR2_SOFT_FLOAT
 else ifeq ($(BR2_mipsel),y)
-ifeq ($(BR2_SOFT_FLOAT),y)
-TOOLCHAIN_EXTERNAL_SOURCE = crossx86-mipsel-sf-linux-musl-$(TOOLCHAIN_EXTERNAL_VERSION).tar.xz
-else
 TOOLCHAIN_EXTERNAL_SOURCE = crossx86-mipsel-linux-musl-$(TOOLCHAIN_EXTERNAL_VERSION).tar.xz
-endif # BR2_SOFT_FLOAT
 else ifeq ($(BR2_powerpc),y)
 TOOLCHAIN_EXTERNAL_SOURCE = crossx86-powerpc-linux-musl-$(TOOLCHAIN_EXTERNAL_VERSION).tar.xz
 else ifeq ($(BR2_x86_64),y)
Signature · 1 line
2.1.4
#1 lore raw

PATCH v8 1/1 python-pyxml: new package

From: Clayton Shotwell <[email protected]>

It always uses its own copy of pyexpat, but we can at least make it use buildroot's expat.so.

---
Changes:
v8: Remove unrelated musl fix (Arnout)
v7: use bundled pyexpat, fix using external expat, remove
double spaces from help text (Arnout)
v6: remove host-python dependency, fix formatting (Thomas Petazzoni)
v5: refresh the patch, so it can applied without errors
v3: updated to use python package type (Matt W)
added hash file (Matt W)

---
 package/Config.in                    |  1 +
 package/python-pyxml/Config.in       | 11 +++++++++++
 package/python-pyxml/python-xml.hash |  2 ++
 package/python-pyxml/python-xml.mk   | 17 +++++++++++++++++
 4 files changed, 31 insertions(+)
 create mode 100644 package/python-pyxml/Config.in
 create mode 100644 package/python-pyxml/python-xml.hash
 create mode 100644 package/python-pyxml/python-xml.mk
package/Config.in +1 -0
index 4e20e4d..8b02486 100644
@@ -629,6 +629,7 @@ menu "external python modules"
 	source "package/python-pysnmp-mibs/Config.in"
 	source "package/python-pyusb/Config.in"
 	source "package/python-pyxb/Config.in"
+	source "package/python-pyxml/Config.in"
 	source "package/python-pyzmq/Config.in"
 	source "package/python-requests/Config.in"
 	source "package/python-rtslib-fb/Config.in"
package/python-pyxml/Config.in new file +11 -0
new file mode 100644
index 0000000..e6d20fa
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_PYXML
+	bool "python-pyxml"
+	depends on BR2_PACKAGE_PYTHON
+	help
+	  This is the Python XML package. The distribution contains a
+	  validating XML parser, an implementation of the SAX and DOM
+	  programming interfaces, an interface to the Expat parser (and the
+	  Expat parser itself), and a C helper module that can speed up
+	  xmllib.py by a factor of 5. There's even documentation!
+
+	  http://pyxml.sourceforge.net/topics/index.html
package/python-pyxml/python-xml.hash new file +2 -0
new file mode 100644
index 0000000..df98c46
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 9fab66f9584fb8e67aebd8745a5c97bf1c5a2e2e461adf68862bcec64e448c13  PyXML-0.8.4.tar.gz
package/python-pyxml/python-xml.mk new file +17 -0
new file mode 100644
index 0000000..bfe2c89
@@ -0,0 +1,17 @@
+################################################################################
+#
+# python-pyxml
+#
+################################################################################
+
+PYTHON_PYXML_VERSION = 0.8.4
+PYTHON_PYXML_SOURCE = PyXML-$(PYTHON_PYXML_VERSION).tar.gz
+PYTHON_PYXML_SITE = http://downloads.sourceforge.net/project/pyxml/pyxml/0.8.4/
+PYTHON_PYXML_LICENSE = BSD-3c
+PYTHON_PYXML_LICENSE_FILES = LICENSE
+PYTHON_PYXML_SETUP_TYPE = distutils
+PYTHON_PYXML_DEPENDENCIES = expat
+PYTHON_PYXML_BUILD_OPTS = --with-libexpat=$(STAGING_DIR)/usr
+PYTHON_PYXML_INSTALL_TARGET_OPTS = --with-libexpat=$(STAGING_DIR)/usr
+
+$(eval $(python-package))
Signature · 1 line
2.1.4
#2 lore raw

PATCH v8 1/1 python-pyxml: new package

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

From: Clayton Shotwell <[email protected]>
It always uses its own copy of pyexpat, but we can at least make it use buildroot's expat.so.

Quoted 7 lines

---
Changes:
v8: Remove unrelated musl fix (Arnout)

Committed with a 'select BR2_PACKAGE_EXPAT' added, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH v8 1/1 python-pyxml: new package

Quoted 14 lines · Peter Korsgaard
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

From: Clayton Shotwell <[email protected]>
It always uses its own copy of pyexpat, but we can at least make it use buildroot's expat.so.

Quoted 7 lines

---
Changes:
v8: Remove unrelated musl fix (Arnout)

Quoted 1 line

Committed with a 'select BR2_PACKAGE_EXPAT' added, thanks.

Ouch, thanks for fixing.

Regards,
Arnout

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:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F