All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: Yocto Project <yocto@yoctoproject.org>
Subject: How does python-native work?
Date: Wed, 23 Apr 2014 08:15:15 -0600	[thread overview]
Message-ID: <5357CAF3.1070702@mlbassoc.com> (raw)

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.

In particular, I'm trying to build a package which uses configure
to discover python support and if present package a python interface
library.  In the config.log, I see this:
   configure:12109: checking for python
   configure:12127: found /usr/bin/python
   configure:12140: result: /usr/bin/python
which only makes sense since there is no python in my sysroots (directly).
   $ find tmp/sysroots/x86_64-linux/usr/bin -name "python*"
   tmp/sysroots/x86_64-linux/usr/bin/python-native
   tmp/sysroots/x86_64-linux/usr/bin/python-native/python-config
   tmp/sysroots/x86_64-linux/usr/bin/python-native/python2
   tmp/sysroots/x86_64-linux/usr/bin/python-native/python2-config
   tmp/sysroots/x86_64-linux/usr/bin/python-native/python2.7-config
   tmp/sysroots/x86_64-linux/usr/bin/python-native/python
   tmp/sysroots/x86_64-linux/usr/bin/python-native/python2.7

Even if I convince configure where to find python, e.g. adding
   --with-python=$OECORE_NATIVE_SYSROOT/usr/bin/python-native/python
   --with-python-config=$OECORE_NATIVE_SYSROOT/usr/bin/python-native/python-config
this still isn't right since python-config gives incorrect answers:
   $ tmp/sysroots/x86_64-linux/usr/bin/python-native/python-config --includes
   -I/usr/include/python2.7 -I/usr/include/python2.7

I would think that python-native would install python on my path
(from tmp/sysroots) and as well provide python-config which gives
the answers I can use, e.g. --includes which point to the python
includes in tmp/sysroots/HOST, etc.

What am I missing and how do I work with this?

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


             reply	other threads:[~2014-04-23 14:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 14:15 Gary Thomas [this message]
2014-04-23 14:21 ` How does python-native work? Chris Larson
2014-04-23 14:57   ` Gary Thomas
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=5357CAF3.1070702@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.