* python & xml2
@ 2018-04-27 23:26 Russell Peterson
2018-04-28 12:20 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: Russell Peterson @ 2018-04-27 23:26 UTC (permalink / raw)
To: yocto
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: python & xml2
2018-04-27 23:26 python & xml2 Russell Peterson
@ 2018-04-28 12:20 ` Burton, Ross
2018-04-28 23:03 ` Russell Peterson
0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2018-04-28 12:20 UTC (permalink / raw)
To: Russell Peterson; +Cc: Yocto-mailing-list
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 <bluehills7@comcast.net> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: python & xml2
2018-04-28 12:20 ` Burton, Ross
@ 2018-04-28 23:03 ` Russell Peterson
0 siblings, 0 replies; 3+ messages in thread
From: Russell Peterson @ 2018-04-28 23:03 UTC (permalink / raw)
To: Burton, Ross; +Cc: Yocto-mailing-list
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 <ross.burton@intel.com> 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 <bluehills7@comcast.net> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-28 23:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-27 23:26 python & xml2 Russell Peterson
2018-04-28 12:20 ` Burton, Ross
2018-04-28 23:03 ` Russell Peterson
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.