Re: [yocto] Python3 and pathlib/ntpath
Hello again, I can't get this to work. If I add pathlib and ntpath like in my initial email I have pathlib on target. If however I 'IMAGE_INSTALL_append = " python3-misc"' or add python3-misc as RDEPENDS in meson recipe I don't have pathlib on target. There is no mention of ntpath or pathlib in the python3-manifest file but I'm not sure how that thing is supposed to work. // Einar On Fri, Dec 21, 2018 at 5:48 PM Einar Vading wrote: > > Adding python3-misc did not seem to make a difference. > > // Einar > > Den fre 21 dec. 2018 15:16 skrev Einar Vading : >> >> I'm installing using the recipe. >> >> Running Sumo and the meson recipe has: >> RDEPENDS_${PN} = "ninja python3-core python3-modules" >> >> I'll try to add python3-misc to RDEPENDS. >> >> // Einar >> >> On Fri, Dec 21, 2018 at 2:58 PM Burton, Ross wrote: >> > >> > pathlib is in python3-misc: >> > >> > $ oe-pkgdata-util find-path */pathlib.py >> > python3-misc: /usr/lib/python3.5/pathlib.py >> > >> > And Meson in Thud at least has a dependency on python3-misc, so you >> > shoudn't need to do anything. >> > >> > What release are you using? >> > >> > Or, are you trying to install Meson from source inside the image, >> > instead of using the recipe? In that case ensure that you have all of >> > Python installed, easiest way is to add python3 to IMAGE_INSTALL. >> > >> > Ross >> > >> > On Fri, 21 Dec 2018 at 13:17, Einar Vading wrote: >> > > >> > > Hi, >> > > >> > > I was trying to install meson on target for a machine that creates a >> > > docker image for us. When I try to start meson however I get an error >> > > message that pathlib can't be found. With the patch below I got it to >> > > work but my question is if there is another way? Or if the patch would >> > > be acceptable upstream? >> > > >> > > Best regards, >> > > Einar >> > > >> > > diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json >> > > b/meta/recipes-devtools/python/python3/python3-manifest.json >> > > index 2491f36db2..42a5680c65 100644 >> > > --- a/meta/recipes-devtools/python/python3/python3-manifest.json >> > > +++ b/meta/recipes-devtools/python/python3/python3-manifest.json >> > > @@ -154,10 +154,12 @@ >> > > "${libdir}/python3.5/__pycache__/keyword.*.pyc", >> > > "${libdir}/python3.5/__pycache__/linecache.*.pyc", >> > > "${libdir}/python3.5/__pycache__/locale.*.pyc", >> > > +"${libdir}/python3.5/__pycache__/ntpath.*.pyc", >> > > "${libdir}/python3.5/__pycache__/opcode.*.pyc", >> > > "${libdir}/python3.5/__pycache__/operator.*.pyc", >> > > "${libdir}/python3.5/__pycache__/optparse.*.pyc", >> > > "${libdir}/python3.5/__pycache__/os.*.pyc", >> > > +"${libdir}/python3.5/__pycache__/pathlib.*.pyc", >> > > "${libdir}/python3.5/__pycache__/platform.*.pyc", >> > > "${libdir}/python3.5/__pycache__/posixpath.*.pyc", >> > > "${libdir}/python3.5/__pycache__/re.*.pyc", >> > > @@ -269,10 +271,12 @@ >> > > "${libdir}/python3.5/linecache.py", >> > > "${libdir}/python3.5/locale.py", >> > > "${libdir}/python3.5/new.py", >> > > +"${libdir}/python3.5/ntpath.py", >> > > "${libdir}/python3.5/opcode.py", >> > > "${libdir}/python3.5/operator.py", >> > > "${libdir}/python3.5/optparse.py", >> > > "${libdir}/python3.5/os.py", >> > > +"${libdir}/python3.5/pathlib.py", >> > > "${libdir}/python3.5/platform.py", >> > > "${libdir}/python3.5/posixpath.py", >> > > "${libdir}/python3.5/re.py", >> > > @@ -1146,4 +1150,4 @@ >> > > ], >> > > "summary": "Python XML-RPC support" >> > > } >> > > -} >> > > \ No newline at end of file >> > > +} >> > > -- >> > > ___ >> > > 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] Python3 and pathlib/ntpath
Adding python3-misc did not seem to make a difference. // Einar Den fre 21 dec. 2018 15:16 skrev Einar Vading : > I'm installing using the recipe. > > Running Sumo and the meson recipe has: > RDEPENDS_${PN} = "ninja python3-core python3-modules" > > I'll try to add python3-misc to RDEPENDS. > > // Einar > > On Fri, Dec 21, 2018 at 2:58 PM Burton, Ross > wrote: > > > > pathlib is in python3-misc: > > > > $ oe-pkgdata-util find-path */pathlib.py > > python3-misc: /usr/lib/python3.5/pathlib.py > > > > And Meson in Thud at least has a dependency on python3-misc, so you > > shoudn't need to do anything. > > > > What release are you using? > > > > Or, are you trying to install Meson from source inside the image, > > instead of using the recipe? In that case ensure that you have all of > > Python installed, easiest way is to add python3 to IMAGE_INSTALL. > > > > Ross > > > > On Fri, 21 Dec 2018 at 13:17, Einar Vading wrote: > > > > > > Hi, > > > > > > I was trying to install meson on target for a machine that creates a > > > docker image for us. When I try to start meson however I get an error > > > message that pathlib can't be found. With the patch below I got it to > > > work but my question is if there is another way? Or if the patch would > > > be acceptable upstream? > > > > > > Best regards, > > > Einar > > > > > > diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json > > > b/meta/recipes-devtools/python/python3/python3-manifest.json > > > index 2491f36db2..42a5680c65 100644 > > > --- a/meta/recipes-devtools/python/python3/python3-manifest.json > > > +++ b/meta/recipes-devtools/python/python3/python3-manifest.json > > > @@ -154,10 +154,12 @@ > > > "${libdir}/python3.5/__pycache__/keyword.*.pyc", > > > "${libdir}/python3.5/__pycache__/linecache.*.pyc", > > > "${libdir}/python3.5/__pycache__/locale.*.pyc", > > > +"${libdir}/python3.5/__pycache__/ntpath.*.pyc", > > > "${libdir}/python3.5/__pycache__/opcode.*.pyc", > > > "${libdir}/python3.5/__pycache__/operator.*.pyc", > > > "${libdir}/python3.5/__pycache__/optparse.*.pyc", > > > "${libdir}/python3.5/__pycache__/os.*.pyc", > > > +"${libdir}/python3.5/__pycache__/pathlib.*.pyc", > > > "${libdir}/python3.5/__pycache__/platform.*.pyc", > > > "${libdir}/python3.5/__pycache__/posixpath.*.pyc", > > > "${libdir}/python3.5/__pycache__/re.*.pyc", > > > @@ -269,10 +271,12 @@ > > > "${libdir}/python3.5/linecache.py", > > > "${libdir}/python3.5/locale.py", > > > "${libdir}/python3.5/new.py", > > > +"${libdir}/python3.5/ntpath.py", > > > "${libdir}/python3.5/opcode.py", > > > "${libdir}/python3.5/operator.py", > > > "${libdir}/python3.5/optparse.py", > > > "${libdir}/python3.5/os.py", > > > +"${libdir}/python3.5/pathlib.py", > > > "${libdir}/python3.5/platform.py", > > > "${libdir}/python3.5/posixpath.py", > > > "${libdir}/python3.5/re.py", > > > @@ -1146,4 +1150,4 @@ > > > ], > > > "summary": "Python XML-RPC support" > > > } > > > -} > > > \ No newline at end of file > > > +} > > > -- > > > ___ > > > 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] Python3 and pathlib/ntpath
I'm installing using the recipe. Running Sumo and the meson recipe has: RDEPENDS_${PN} = "ninja python3-core python3-modules" I'll try to add python3-misc to RDEPENDS. // Einar On Fri, Dec 21, 2018 at 2:58 PM Burton, Ross wrote: > > pathlib is in python3-misc: > > $ oe-pkgdata-util find-path */pathlib.py > python3-misc: /usr/lib/python3.5/pathlib.py > > And Meson in Thud at least has a dependency on python3-misc, so you > shoudn't need to do anything. > > What release are you using? > > Or, are you trying to install Meson from source inside the image, > instead of using the recipe? In that case ensure that you have all of > Python installed, easiest way is to add python3 to IMAGE_INSTALL. > > Ross > > On Fri, 21 Dec 2018 at 13:17, Einar Vading wrote: > > > > Hi, > > > > I was trying to install meson on target for a machine that creates a > > docker image for us. When I try to start meson however I get an error > > message that pathlib can't be found. With the patch below I got it to > > work but my question is if there is another way? Or if the patch would > > be acceptable upstream? > > > > Best regards, > > Einar > > > > diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json > > b/meta/recipes-devtools/python/python3/python3-manifest.json > > index 2491f36db2..42a5680c65 100644 > > --- a/meta/recipes-devtools/python/python3/python3-manifest.json > > +++ b/meta/recipes-devtools/python/python3/python3-manifest.json > > @@ -154,10 +154,12 @@ > > "${libdir}/python3.5/__pycache__/keyword.*.pyc", > > "${libdir}/python3.5/__pycache__/linecache.*.pyc", > > "${libdir}/python3.5/__pycache__/locale.*.pyc", > > +"${libdir}/python3.5/__pycache__/ntpath.*.pyc", > > "${libdir}/python3.5/__pycache__/opcode.*.pyc", > > "${libdir}/python3.5/__pycache__/operator.*.pyc", > > "${libdir}/python3.5/__pycache__/optparse.*.pyc", > > "${libdir}/python3.5/__pycache__/os.*.pyc", > > +"${libdir}/python3.5/__pycache__/pathlib.*.pyc", > > "${libdir}/python3.5/__pycache__/platform.*.pyc", > > "${libdir}/python3.5/__pycache__/posixpath.*.pyc", > > "${libdir}/python3.5/__pycache__/re.*.pyc", > > @@ -269,10 +271,12 @@ > > "${libdir}/python3.5/linecache.py", > > "${libdir}/python3.5/locale.py", > > "${libdir}/python3.5/new.py", > > +"${libdir}/python3.5/ntpath.py", > > "${libdir}/python3.5/opcode.py", > > "${libdir}/python3.5/operator.py", > > "${libdir}/python3.5/optparse.py", > > "${libdir}/python3.5/os.py", > > +"${libdir}/python3.5/pathlib.py", > > "${libdir}/python3.5/platform.py", > > "${libdir}/python3.5/posixpath.py", > > "${libdir}/python3.5/re.py", > > @@ -1146,4 +1150,4 @@ > > ], > > "summary": "Python XML-RPC support" > > } > > -} > > \ No newline at end of file > > +} > > -- > > ___ > > 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] Python3 and pathlib/ntpath
pathlib is in python3-misc: $ oe-pkgdata-util find-path */pathlib.py python3-misc: /usr/lib/python3.5/pathlib.py And Meson in Thud at least has a dependency on python3-misc, so you shoudn't need to do anything. What release are you using? Or, are you trying to install Meson from source inside the image, instead of using the recipe? In that case ensure that you have all of Python installed, easiest way is to add python3 to IMAGE_INSTALL. Ross On Fri, 21 Dec 2018 at 13:17, Einar Vading wrote: > > Hi, > > I was trying to install meson on target for a machine that creates a > docker image for us. When I try to start meson however I get an error > message that pathlib can't be found. With the patch below I got it to > work but my question is if there is another way? Or if the patch would > be acceptable upstream? > > Best regards, > Einar > > diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json > b/meta/recipes-devtools/python/python3/python3-manifest.json > index 2491f36db2..42a5680c65 100644 > --- a/meta/recipes-devtools/python/python3/python3-manifest.json > +++ b/meta/recipes-devtools/python/python3/python3-manifest.json > @@ -154,10 +154,12 @@ > "${libdir}/python3.5/__pycache__/keyword.*.pyc", > "${libdir}/python3.5/__pycache__/linecache.*.pyc", > "${libdir}/python3.5/__pycache__/locale.*.pyc", > +"${libdir}/python3.5/__pycache__/ntpath.*.pyc", > "${libdir}/python3.5/__pycache__/opcode.*.pyc", > "${libdir}/python3.5/__pycache__/operator.*.pyc", > "${libdir}/python3.5/__pycache__/optparse.*.pyc", > "${libdir}/python3.5/__pycache__/os.*.pyc", > +"${libdir}/python3.5/__pycache__/pathlib.*.pyc", > "${libdir}/python3.5/__pycache__/platform.*.pyc", > "${libdir}/python3.5/__pycache__/posixpath.*.pyc", > "${libdir}/python3.5/__pycache__/re.*.pyc", > @@ -269,10 +271,12 @@ > "${libdir}/python3.5/linecache.py", > "${libdir}/python3.5/locale.py", > "${libdir}/python3.5/new.py", > +"${libdir}/python3.5/ntpath.py", > "${libdir}/python3.5/opcode.py", > "${libdir}/python3.5/operator.py", > "${libdir}/python3.5/optparse.py", > "${libdir}/python3.5/os.py", > +"${libdir}/python3.5/pathlib.py", > "${libdir}/python3.5/platform.py", > "${libdir}/python3.5/posixpath.py", > "${libdir}/python3.5/re.py", > @@ -1146,4 +1150,4 @@ > ], > "summary": "Python XML-RPC support" > } > -} > \ No newline at end of file > +} > -- > ___ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto