From: Gary Thomas <gary@mlbassoc.com>
To: yocto@yoctoproject.org
Subject: Re: How does python-native work?
Date: Wed, 23 Apr 2014 08:57:02 -0600 [thread overview]
Message-ID: <5357D4BE.6090309@mlbassoc.com> (raw)
In-Reply-To: <CABcZANmHUB-v=zek8jxLWtUjSEGYZCjqL2q=3a=fUKXiMn4nSw@mail.gmail.com>
On 2014-04-23 08:21, Chris Larson wrote:
> On Wed, Apr 23, 2014 at 7:15 AM, Gary Thomas <gary@mlbassoc.com <mailto:gary@mlbassoc.com>> wrote:
>
> How is python-native supposed to work? I can see that it's
> built and installed in my tmp/sysroots/HOST but it's installed
> in a sub-directory which is not found by normal means.
>
>
> inherit pythonnative (or one of the classes that inherit it)
Thanks, I imported 'distutils' and that helped, but I still have problems with it. Looking
at log.do_configure:
checking for python... /local/rpi_2014-04-10/tmp/sysroots/x86_64-linux/usr/bin/python-native/python
checking for python-config... /local/rpi_2014-04-10/tmp/sysroots/x86_64-linux/usr/bin/python-native/python-config
Traceback (most recent call last):
File "/local/rpi_2014-04-10/tmp/sysroots/x86_64-linux/usr/bin/python-native/python-config", line 6, in <module>
from distutils import sysconfig
File "/local/rpi_2014-04-10/tmp/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py", line 22, in <module>
PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
TypeError: expected a character buffer object
When I ran python-config before (original email), the results
were from outside the build environment, i.e. the command line
where I run 'bitbake'. When do_configure() runs in my recipe,
the environment seems to be quite different. If I try to run
python-config from devshell (for my recipe), it fails as above.
I'm sure I'm just missing something...
Thanks for the help
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
next prev parent reply other threads:[~2014-04-23 14:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-23 14:15 How does python-native work? Gary Thomas
2014-04-23 14:21 ` Chris Larson
2014-04-23 14:57 ` Gary Thomas [this message]
2014-04-23 15:37 ` Chris Larson
2014-04-23 15:44 ` Gary Thomas
2014-04-23 15:51 ` Chris Larson
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=5357D4BE.6090309@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=yocto@yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.