Re: Trying to tweak a build with a setup.cfg file

Chris Larson <clarson@...>

On Mon, Aug 19, 2013 at 3:52 PM, Paul D. DeRocco <pderocco@...> wrote:
I'm trying to build python-matplotlib from the Danny branch of
meta-openembedded/meta-oe/recipes-devtools/python. I need to add a
setup.cfg file to tweak the build, but I don't know how to get it into the
right place.

I put the setup.cfg into a python-matplotlib subdirectory in my recipes
directory, and added a python-matplotlib_1.1.0.bbappend file which
contains the following lines:

PRINC := "${@int(PRINC) + 2}"
SRC_URI += "file://setup.cfg"

The file is being copied into
rather than
plotlib-1.1.0 where it needs to be. How do I push it down a level?

By default, anything in SRC_URI goes into ${WORKDIR}, not ${S}. You should be able to change this like so:

    SRC_URI += "file://setup.cfg;subdir=matplotlib-${PV}"
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

Join { to automatically receive all group messages.