mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/2] host-system-python3: add option for setuptools
@ 2019-08-02  7:33 Bastian Krause
  2019-08-02  7:33 ` [ptxdist] [PATCH 2/2] host-meson: select HOST_SYSTEM_PYTHON3_SETUPTOOLS Bastian Krause
  0 siblings, 1 reply; 2+ messages in thread
From: Bastian Krause @ 2019-08-02  7:33 UTC (permalink / raw)
  To: ptxdist; +Cc: Denis OSTERLAND, Bastian Krause

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
 rules/host-system-python3.make | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/rules/host-system-python3.make b/rules/host-system-python3.make
index f5293be21..9498d847c 100644
--- a/rules/host-system-python3.make
+++ b/rules/host-system-python3.make
@@ -42,6 +42,12 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON3_NUMPY
 		ptxd_bailout "Python numpy module not found! \
 	Please install python3-numpy (debian)";
 endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON3_SETUPTOOLS
+	@echo "Checking for Python Setuptools ..."
+	@$(SYSTEMPYTHON3) -c 'import setuptools' 2>/dev/null || \
+		ptxd_bailout "Python setuptools module not found! \
+	Please install python3-setuptools (debian)";
+endif
 ifdef PTXCONF_HOST_SYSTEM_PYTHON3_SIX
 	@echo "Checking for Python Six ..."
 	@$(SYSTEMPYTHON3) -c 'import six' 2>/dev/null || \
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ptxdist] [PATCH 2/2] host-meson: select HOST_SYSTEM_PYTHON3_SETUPTOOLS
  2019-08-02  7:33 [ptxdist] [PATCH 1/2] host-system-python3: add option for setuptools Bastian Krause
@ 2019-08-02  7:33 ` Bastian Krause
  0 siblings, 0 replies; 2+ messages in thread
From: Bastian Krause @ 2019-08-02  7:33 UTC (permalink / raw)
  To: ptxdist; +Cc: Denis OSTERLAND, Bastian Krause

Fixes:
  Traceback (most recent call last):
    File "setup.py", line 25, in <module>
      from setuptools import setup
  ImportError: No module named 'setuptools'

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
 rules/host-meson.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/host-meson.in b/rules/host-meson.in
index 580533cc8..e448c51cf 100644
--- a/rules/host-meson.in
+++ b/rules/host-meson.in
@@ -3,5 +3,6 @@
 config HOST_MESON
 	tristate
 	select HOST_SYSTEM_PYTHON3
+	select HOST_SYSTEM_PYTHON3_SETUPTOOLS
 	select HOST_NINJA
 	default y if ALLYES
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-02  7:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-02  7:33 [ptxdist] [PATCH 1/2] host-system-python3: add option for setuptools Bastian Krause
2019-08-02  7:33 ` [ptxdist] [PATCH 2/2] host-meson: select HOST_SYSTEM_PYTHON3_SETUPTOOLS Bastian Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox