Skip to contentSkip to conversation

package/python-greenlet: new package

PATCH New James Hilliard 2 participants 4 messages Nov 1, 2019 – Apr 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-greenlet: new package

---
 DEVELOPERS                                   |  1 +
 package/Config.in                            |  1 +
 package/python-greenlet/Config.in            |  6 ++++++
 package/python-greenlet/python-greenlet.hash |  5 +++++
 package/python-greenlet/python-greenlet.mk   | 14 ++++++++++++++
 5 files changed, 27 insertions(+)
 create mode 100644 package/python-greenlet/Config.in
 create mode 100644 package/python-greenlet/python-greenlet.hash
 create mode 100644 package/python-greenlet/python-greenlet.mk
DEVELOPERS +1 -0
index 22332894de..c59d5c551d 100644
@@ -1126,6 +1126,7 @@ F:	package/python-aiorwlock/
 F:	package/python-async-timeout/
 F:	package/python-brotli/
 F:	package/python-cchardet/
+F:	package/python-greenlet/
 F:	package/python-multidict/
 F:	package/python-pycares/
 F:	package/python-terminaltables/
package/Config.in +1 -0
index 2819cab4ae..15dd3f0938 100644
@@ -913,6 +913,7 @@ menu "External python modules"
 	source "package/python-functools32/Config.in"
 	source "package/python-futures/Config.in"
 	source "package/python-gobject/Config.in"
+	source "package/python-greenlet/Config.in"
 	source "package/python-gunicorn/Config.in"
 	source "package/python-h2/Config.in"
 	source "package/python-hiredis/Config.in"
package/python-greenlet/Config.in new file +6 -0
new file mode 100644
index 0000000000..ef82375b0b
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_GREENLET
+	bool "python-greenlet"
+	help
+	  Lightweight in-process concurrent programming.
+
+	  https://github.com/python-greenlet/greenlet
package/python-greenlet/python-greenlet.hash new file +5 -0
new file mode 100644
index 0000000000..51a3c7efbb
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/greenlet/json
+md5	10fa304f673fc18b28fa6d8c6658cb80  greenlet-0.4.15.tar.gz
+sha256	9416443e219356e3c31f1f918a91badf2e37acf297e2fa13d24d1cc2380f8fbc  greenlet-0.4.15.tar.gz
+# Locally computed sha256 checksums
+sha256	bbde55d5456a1e912633ed3f66d1dbd9504e3e3dce4f4c2015043cdcbc56e697  LICENSE
package/python-greenlet/python-greenlet.mk new file +14 -0
new file mode 100644
index 0000000000..8dcf1fd693
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-greenlet
+#
+################################################################################
+
+PYTHON_GREENLET_VERSION = 0.4.15
+PYTHON_GREENLET_SOURCE = greenlet-$(PYTHON_GREENLET_VERSION).tar.gz
+PYTHON_GREENLET_SITE = https://files.pythonhosted.org/packages/f8/e8/b30ae23b45f69aa3f024b46064c0ac8e5fcb4f22ace0dca8d6f9c8bbe5e7
+PYTHON_GREENLET_SETUP_TYPE = distutils
+PYTHON_GREENLET_LICENSE = MIT
+PYTHON_GREENLET_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 package/python-greenlet: new package

package/python-greenlet/python-greenlet.mk line 12

Quoted 6 lines · On Fri, 1 Nov 2019 02:01:35 -0600 James Hilliard <[email protected]>…
package/python-greenlet/python-greenlet.mk new file +6 -0
+PYTHON_GREENLET_VERSION = 0.4.15
+PYTHON_GREENLET_SOURCE = greenlet-$(PYTHON_GREENLET_VERSION).tar.gz
+PYTHON_GREENLET_SITE = https://files.pythonhosted.org/packages/f8/e8/b30ae23b45f69aa3f024b46064c0ac8e5fcb4f22ace0dca8d6f9c8bbe5e7
+PYTHON_GREENLET_SETUP_TYPE = distutils
+PYTHON_GREENLET_LICENSE = MIT
+PYTHON_GREENLET_LICENSE_FILES = LICENSE

The LICENSE file states that there are some parts under the PSF-2.0 license. So I've updated the LICENSE variable to include PSF-2.0, and the LICENSE_FILES variable to include the LICENSE.PSF file.

Applied with those changes. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/python-greenlet: new package

In reply to James Hilliard

Hello,

Quoted 1 line · On Fri, 1 Nov 2019 02:01:35 -0600 James Hilliard <[email protected]>…

This package fails to build on a number of CPU architectures:

http://autobuild.buildroot.net/?reason=python-greenlet%

It seems like it contains some architecture-specific code, as it fails like this:

greenlet.c:347:2: error: #error "greenlet needs to be ported to this platform, or teached how to detect your compiler properly."

Could you have a look ?

Are you receiving daily e-mail with the build failures that occur for the packages you are listed for in the DEVELOPERS file ?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 1/1 package/python-greenlet: new package

Quoted 10 lines · Thomas Petazzoni

Hello,

Quoted 1 line · On Fri, 1 Nov 2019 02:01:35 -0600 James Hilliard <[email protected]>…

This package fails to build on a number of CPU architectures:

Quoted 8 lines

http://autobuild.buildroot.net/?reason=python-greenlet%

It seems like it contains some architecture-specific code, as it fails like this:

greenlet.c:347:2: error: #error "greenlet needs to be ported to this platform, or teached how to detect your compiler properly."

Could you have a look ?

I went ahead and just disabled the failing architectures for now as adding
support for the missing architectures looks pretty tricky since I don't really
know much assembly.
https://patchwork.ozlabs.org/project/buildroot/patch/20200419233823.29410-1-james.hilliard1 at gmail.com/

I went ahead and opened issues upstream to track support for these missing architectures:
https://github.com/python-greenlet/greenlet/issues/163
https://github.com/python-greenlet/greenlet/issues/164
https://github.com/python-greenlet/greenlet/issues/165
https://github.com/python-greenlet/greenlet/issues/166

Quoted 3 lines

Are you receiving daily e-mail with the build failures that occur for the packages you are listed for in the DEVELOPERS file ?

Yes, just hadn't gotten around to looking at this one yet.

Quoted 8 lines

Thanks!

Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com