[Buildroot] [git commit] python-falcon: add optional dependency on host-python-cython
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sat Sep 1 12:58:38 UTC 2018
commit: https://git.buildroot.net/buildroot/commit/?id=763c2db314fa3a5a486055ad15cb506859e4e955
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Falcon can be compiled into shared objects using Cython.
Compiled version works much faster than pure-python one.
Signed-off-by: Grzegorz Blach <grzegorz at blach.pl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/python-falcon/python-falcon.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/python-falcon/python-falcon.mk b/package/python-falcon/python-falcon.mk
index 106387f96f..b724ffadbe 100644
--- a/package/python-falcon/python-falcon.mk
+++ b/package/python-falcon/python-falcon.mk
@@ -11,4 +11,8 @@ PYTHON_FALCON_SETUP_TYPE = setuptools
PYTHON_FALCON_LICENSE = Apache-2.0
PYTHON_FALCON_LICENSE_FILES = LICENSE
+ifeq ($(BR2_PACKAGE_HOST_PYTHON_CYTHON),y)
+PYTHON_FALCON_DEPENDENCIES += host-python-cython
+endif
+
$(eval $(python-package))
More information about the buildroot
mailing list