Re: [yocto] python & xml2

2018-04-28 Thread Russell Peterson
I created a bbappend file with the following:

PYTHON_PN = "python"
DEPENDS += "python"
RDEPENDS_${PN}-ptest += "python-core"
PYTHON_BASEVERSION = "2.7"
PYTHON_DIR = "python2.7"

Seems to work although I have not tested it yet… the library shows up in the 
correct site dir anyway.

I would think this would be easier and more obvious to change but I’m not 
python or xml2 expert.
Our users have older python applications that reply on python2.

Thanks for the response.

Russell


> On Apr 28, 2018, at 8:20 AM, Burton, Ross  wrote:
> 
> The recipe specifies that Python 3 is to be used.  If you want to
> build it against Python 2 you'll have to patch the recipe.
> 
> Ross
> 
> On 28 April 2018 at 00:26, Russell Peterson  wrote:
>> I am trying to install libxml2 for python2 in my image recipe.  Seems like 
>> it is being installed in the python3 site packages directory instead of the 
>> python2 site packages directory.  While looking into this I have become very 
>> confused.  Is there some documentation on this?  Do I need to set some kind 
>> of variable in the xml2 recipe??
>> 
>> Russell
>> 
>> --
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] python & xml2

2018-04-28 Thread Burton, Ross
The recipe specifies that Python 3 is to be used.  If you want to
build it against Python 2 you'll have to patch the recipe.

Ross

On 28 April 2018 at 00:26, Russell Peterson  wrote:
> I am trying to install libxml2 for python2 in my image recipe.  Seems like it 
> is being installed in the python3 site packages directory instead of the 
> python2 site packages directory.  While looking into this I have become very 
> confused.  Is there some documentation on this?  Do I need to set some kind 
> of variable in the xml2 recipe??
>
> Russell
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] python & xml2

2018-04-27 Thread Russell Peterson
I am trying to install libxml2 for python2 in my image recipe.  Seems like it 
is being installed in the python3 site packages directory instead of the 
python2 site packages directory.  While looking into this I have become very 
confused.  Is there some documentation on this?  Do I need to set some kind of 
variable in the xml2 recipe??

Russell

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto