All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Cochran <yocto@mindchasers.com>
To: yocto@yoctoproject.org
Subject: Re: Question regarding python, _sysconfigdata.py, and building C extension modules on the target...
Date: Tue, 02 Jun 2015 21:35:50 -0400	[thread overview]
Message-ID: <556E59F6.7060806@mindchasers.com> (raw)
In-Reply-To: <556D1937.9090602@mindchasers.com>

On 06/01/2015 10:47 PM, Bob Cochran wrote:
> Hi,
>
> While building a python 2.7 C extension module on the target (e.g.,
> python setup.py build) I found that I needed to modify
> /usr/lib64/python2.7/_sysconfigdata.py to successfully build the module.
>
> I modified both CC and LDSHARE.  For both, I removed
> --sysroot=/build/yocto/<project>/tmp/sysroots/<machine>'.  And for
> LDSHARE, I added -L/lib64, so gcc_s could be found.
>
> I'm wondering whether this is expected behavior or perhaps a bug.
> Perhaps I should have setup my environment differently for building a C
> extension module on the target?
>
> I would appreciate any advice on the best way to rectify this so I can
> use a non-modified, generated rootfs to build C extension modules on my
> target.

For now, I modified my setup.py to include the following in my call to 
Extension():

                     include_dirs=['/usr/include'],
                     library_dirs=['/lib64'])

However, I don't think I should need to do this, and I didn't have to do 
this on targets (rootfs) generated by earlier poky releases.  I'll keep 
digging...


>
> I'm using poky fido (508c4cac320d) and building with a Freescale t1040
> 64bit (meta-fsl-ppc).
>
> Thanks
>
> Bob



      reply	other threads:[~2015-06-03  1:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02  2:47 Question regarding python, _sysconfigdata.py, and building C extension modules on the target Bob Cochran
2015-06-03  1:35 ` Bob Cochran [this message]

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=556E59F6.7060806@mindchasers.com \
    --to=yocto@mindchasers.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.