From: Denis OSTERLAND <denis.osterland@diehl.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Cc: Denis OSTERLAND <denis.osterland@diehl.com>
Subject: [ptxdist] [RFC PATCH] host-meson: add dependency to python setuptools
Date: Thu, 11 Apr 2019 14:39:26 +0000 [thread overview]
Message-ID: <20190411143854.21928-1-Denis.Osterland@diehl.com> (raw)
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
next reply other threads:[~2019-04-11 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-11 14:39 Denis OSTERLAND [this message]
2019-04-12 7:52 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190411143854.21928-1-Denis.Osterland@diehl.com \
--to=denis.osterland@diehl.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox