From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] host-python
Date: Mon, 15 Feb 2016 09:48:24 +0100 [thread overview]
Message-ID: <20160215084824.GA23517@pengutronix.de> (raw)
In-Reply-To: <56BC8FBB.2080303@erwinrol.com>
Hi,
On Thu, Feb 11, 2016 at 02:42:19PM +0100, Erwin Rol wrote:
> The host-python package removes the "python" file after install with the
> following reason;
>
> # remove "python" so that it doesn't interfere with the build
> # machine's python
> #
> # the target build proces will only use python with the
> # python-$(PYTHON_MAJORMINOR)
>
> But isn't the reason of wanting host-python that the real host python
> isn't good enough (wrong version) ?
>
> So I don't really understand the idea behind using host-python and than
> "breaking" it so it doesn't get found unless you change every reference
> to "python" into "pyhton-2"
>
> Do things break when "python" from host-python is found ?
This stuff is a bit tricky:
We have the Python 2.x installed in the system by your distribution.
PTXdist does the basic check for this in it's configure script.
This is for any package that uses Python in it's build process but not on
the target and works with any recent Python 2.x version.
If extra modules are needed, they are handled by the host-system-python
package.
Then we have host-python. This is used for anything that is related to
Python on the target. Usually that means packages that install Python
modules on the target.
We could use host-python for everything, but that would mean, that we need
to compile it for basically every BSP and add a lot of host Python modules.
I'd like to avoid that.
In the first case, there are usually scripts with "/usr/bin/env python" as
shebang, so the 'python' used for this should be the first in $PATH.
For the second case we can usually specify the python binary, because we're
building for a specific version.
By deleting the 'python' link for host-python we can handle both cases.
Regards,
Michael
--
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
next prev parent reply other threads:[~2016-02-15 8:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-11 13:42 Erwin Rol
2016-02-15 8:48 ` Michael Olbrich [this message]
2016-02-15 9:36 ` Erwin Rol
2016-02-15 9:46 ` 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=20160215084824.GA23517@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--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