Re: [ptxdist] [RFC PATCH] host-meson: add dependency to python setuptools

2019-04-12 Thread Michael Olbrich
On Thu, Apr 11, 2019 at 02:39:26PM +, Denis OSTERLAND wrote:
> Fixes:
> Traceback (most recent call last):
>   File "setup.py", line 25, in 
> from setuptools import setup
> ImportError: No module named 'setuptools'

You need to install python3-setuptools (that's the name of the Debian
package, I'm not sure about other distros).

We should add a HOST_SYSTEM_PYTHON3_SETUPTOOLS options that checks for
this.

Michael

> Signed-off-by: Denis Osterland 
> ---
>  rules/host-meson.in   | 2 +-
>  rules/host-meson.make | 4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> 
> Hi Michael,
> 
> I tried to stick with system-python3, as we did with host-python-scons
> and system-python, but failed in configure.
> I have python-3.5.1 installed on my system.
> Is 3.7 mandatory?
> 'install host-system-python3' runs without bailout.
> Or is python module installation to "system" only supported for python2?
> 
> Regards Denis
> 
> 
> diff --git a/rules/host-meson.in b/rules/host-meson.in
> index 580533cc8..d0c1a5c55 100644
> --- a/rules/host-meson.in
> +++ b/rules/host-meson.in
> @@ -2,6 +2,6 @@
>  
>  config HOST_MESON
>   tristate
> - select HOST_SYSTEM_PYTHON3
> + select HOST_PYTHON3_SETUPTOOLS
>   select HOST_NINJA
>   default y if ALLYES
> diff --git a/rules/host-meson.make b/rules/host-meson.make
> index 6f1cc6dc3..7123c5ed8 100644
> --- a/rules/host-meson.make
> +++ b/rules/host-meson.make
> @@ -36,7 +36,7 @@ HOST_MESON_CONF_TOOL:= NO
>  
>  $(STATEDIR)/host-meson.compile:
>   @$(call targetinfo)
> - @$(call world/execute, HOST_MESON, $(SYSTEMPYTHON3) setup.py build)
> + @$(call world/execute, HOST_MESON, python3.7 setup.py build)
>   @$(call touch)
>  
>  # 
> 
> @@ -54,7 +54,7 @@ HOST_MESON_INSTALL_OPT  := \
>  $(STATEDIR)/host-meson.install:
>   @$(call targetinfo)
>   @$(call world/execute, HOST_MESON, \
> - $(SYSTEMPYTHON3) setup.py $(HOST_MESON_INSTALL_OPT))
> + python3.7 setup.py $(HOST_MESON_INSTALL_OPT))
>   @mkdir -vp $(HOST_MESON_PKGDIR)/bin
>   @ln -svf ../lib/meson/meson $(HOST_MESON_PKGDIR)/bin/meson
>   @$(call touch)
> -- 
> 2.21.0
> 
> 
> 
> Diehl Connectivity Solutions GmbH
> Geschäftsführung: Horst Leonberger
> Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
> Nürnberg: HRB 32315
> ___
> 
> Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
> enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
> Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
> haben. Bitte loeschen Sie in diesem Fall die Nachricht.
> Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
> und/oder Publikation dieser E-Mail ist strengstens untersagt.
> - Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
> unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/
> 
> The contents of the above mentioned e-mail is not legally binding. This 
> e-mail contains confidential and/or legally protected information. Please 
> inform us if you have received this e-mail by
> mistake and delete it in such a case. Each unauthorized reproduction, 
> disclosure, alteration, distribution and/or publication of this e-mail is 
> strictly prohibited. 
> - For general information on data protection and your respective rights 
> please visit 
> https://www.diehl.com/group/en/transparency-and-information-obligations/
> 
> ___
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

___
ptxdist mailing list
ptxdist@pengutronix.de

[ptxdist] [RFC PATCH] host-meson: add dependency to python setuptools

2019-04-11 Thread Denis OSTERLAND
Fixes:
Traceback (most recent call last):
  File "setup.py", line 25, in 
from setuptools import setup
ImportError: No module named 'setuptools'

Signed-off-by: Denis Osterland 
---
 rules/host-meson.in   | 2 +-
 rules/host-meson.make | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


Hi Michael,

I tried to stick with system-python3, as we did with host-python-scons
and system-python, but failed in configure.
I have python-3.5.1 installed on my system.
Is 3.7 mandatory?
'install host-system-python3' runs without bailout.
Or is python module installation to "system" only supported for python2?

Regards Denis


diff --git a/rules/host-meson.in b/rules/host-meson.in
index 580533cc8..d0c1a5c55 100644
--- a/rules/host-meson.in
+++ b/rules/host-meson.in
@@ -2,6 +2,6 @@
 
 config HOST_MESON
tristate
-   select HOST_SYSTEM_PYTHON3
+   select HOST_PYTHON3_SETUPTOOLS
select HOST_NINJA
default y if ALLYES
diff --git a/rules/host-meson.make b/rules/host-meson.make
index 6f1cc6dc3..7123c5ed8 100644
--- a/rules/host-meson.make
+++ b/rules/host-meson.make
@@ -36,7 +36,7 @@ HOST_MESON_CONF_TOOL  := NO
 
 $(STATEDIR)/host-meson.compile:
@$(call targetinfo)
-   @$(call world/execute, HOST_MESON, $(SYSTEMPYTHON3) setup.py build)
+   @$(call world/execute, HOST_MESON, python3.7 setup.py build)
@$(call touch)
 
 # 
@@ -54,7 +54,7 @@ HOST_MESON_INSTALL_OPT:= \
 $(STATEDIR)/host-meson.install:
@$(call targetinfo)
@$(call world/execute, HOST_MESON, \
-   $(SYSTEMPYTHON3) setup.py $(HOST_MESON_INSTALL_OPT))
+   python3.7 setup.py $(HOST_MESON_INSTALL_OPT))
@mkdir -vp $(HOST_MESON_PKGDIR)/bin
@ln -svf ../lib/meson/meson $(HOST_MESON_PKGDIR)/bin/meson
@$(call touch)
-- 
2.21.0



Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___

Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail 
enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten 
haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung 
und/oder Publikation dieser E-Mail ist strengstens untersagt.
- Informationen zum Datenschutz, insbesondere zu Ihren Rechten, erhalten Sie 
unter https://www.diehl.com/group/de/transparenz-und-informationspflichten/

The contents of the above mentioned e-mail is not legally binding. This e-mail 
contains confidential and/or legally protected information. Please inform us if 
you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, 
disclosure, alteration, distribution and/or publication of this e-mail is 
strictly prohibited. 
- For general information on data protection and your respective rights please 
visit https://www.diehl.com/group/en/transparency-and-information-obligations/

___
ptxdist mailing list
ptxdist@pengutronix.de