[yocto] Python3 and pathlib/ntpath

Einar Vading yocto-ml at vading.se
Fri Dec 21 05:16:19 PST 2018


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
+}


More information about the yocto mailing list