mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [RFC PATCH] host-meson: add dependency to python setuptools
@ 2019-04-11 14:39 Denis OSTERLAND
  2019-04-12  7:52 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Denis OSTERLAND @ 2019-04-11 14:39 UTC (permalink / raw)
  To: ptxdist; +Cc: Denis OSTERLAND

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: Denis Osterland <Denis.Osterland@diehl.com>
---
 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

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

* Re: [ptxdist] [RFC PATCH] host-meson: add dependency to python setuptools
  2019-04-11 14:39 [ptxdist] [RFC PATCH] host-meson: add dependency to python setuptools Denis OSTERLAND
@ 2019-04-12  7:52 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2019-04-12  7:52 UTC (permalink / raw)
  To: ptxdist

On Thu, Apr 11, 2019 at 02:39:26PM +0000, Denis OSTERLAND wrote:
> Fixes:
> Traceback (most recent call last):
>   File "setup.py", line 25, in <module>
>     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 <Denis.Osterland@diehl.com>
> ---
>  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-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2019-04-12  7:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-11 14:39 [ptxdist] [RFC PATCH] host-meson: add dependency to python setuptools Denis OSTERLAND
2019-04-12  7:52 ` Michael Olbrich

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