diff options
author | Hugues Kamba <Hugues.Kamba@arm.com> | 2018-10-30 09:37:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-07 23:08:55 +0000 |
commit | 0140a1c2f7501758615bfa59873fd00196ef6b72 (patch) | |
tree | b1454b49e47e7d4d53bde82b877e629d0ff0025d /meta/recipes-devtools/python | |
parent | ade79d77995977b951255db91406c3545af91b22 (diff) | |
download | poky-0140a1c2f7501758615bfa59873fd00196ef6b72.tar.gz |
python3: Fix python3-pyvenv run-time dependency
Pyvenv is just a small script that uses venv to create virtual
environments.
https://www.python.org/dev/peps/pep-0405/#creating-virtual-environments
This patch adds the python3-venv module as a self-contained package which
python3-pyvenv must depend on at run-time.
The patch also provides the package python3-pyvenv from the pyhton3-venv
package.This is good for future-proofing since python3-pyvenv has been
deprecated and only python3-venv is now available in Python 3.6.
https://docs.python.org/3/library/venv.html.
Without this patch python3-pyvenv is broken because it is missing the
venv module at run-time. This patch specifies the newly created
python3-venv as a run-time dependency of python3-pyvenv.
(From OE-Core rev: effa141bfce55aab25142ee578c95383c755ad73)
Signed-off-by: Hugues Kamba <hugues.kamba@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r-- | meta/recipes-devtools/python/python3/python3-manifest.json | 16 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3_3.5.6.bb | 4 |
2 files changed, 18 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json b/meta/recipes-devtools/python/python3/python3-manifest.json index f922561368..ef7fa4ecaf 100644 --- a/meta/recipes-devtools/python/python3/python3-manifest.json +++ b/meta/recipes-devtools/python/python3/python3-manifest.json | |||
@@ -1107,6 +1107,22 @@ | |||
1107 | "${libdir}/python${PYTHON_MAJMIN}/__pycache__/getpass.*.pyc" | 1107 | "${libdir}/python${PYTHON_MAJMIN}/__pycache__/getpass.*.pyc" |
1108 | ] | 1108 | ] |
1109 | }, | 1109 | }, |
1110 | "venv": { | ||
1111 | "summary": "Provides support for creating lightweight virtual environments with their own site directories, optionally isolated from system site directories.", | ||
1112 | "rdepends": [ | ||
1113 | "compression", | ||
1114 | "core", | ||
1115 | "logging", | ||
1116 | "shell", | ||
1117 | "stringold", | ||
1118 | "unixadmin" | ||
1119 | ], | ||
1120 | "files": [ | ||
1121 | "${libdir}/python${PYTHON_MAJMIN}/venv", | ||
1122 | "${bindir}/pyvenv*" | ||
1123 | ], | ||
1124 | "cached": [] | ||
1125 | }, | ||
1110 | "xml": { | 1126 | "xml": { |
1111 | "summary": "Python basic XML support", | 1127 | "summary": "Python basic XML support", |
1112 | "rdepends": [ | 1128 | "rdepends": [ |
diff --git a/meta/recipes-devtools/python/python3_3.5.6.bb b/meta/recipes-devtools/python/python3_3.5.6.bb index 2a4547694a..31f8eada11 100644 --- a/meta/recipes-devtools/python/python3_3.5.6.bb +++ b/meta/recipes-devtools/python/python3_3.5.6.bb | |||
@@ -226,8 +226,8 @@ FILES_${PN}-2to3 += "${bindir}/2to3-${PYTHON_MAJMIN}" | |||
226 | FILES_${PN}-pydoc += "${bindir}/pydoc${PYTHON_MAJMIN} ${bindir}/pydoc3" | 226 | FILES_${PN}-pydoc += "${bindir}/pydoc${PYTHON_MAJMIN} ${bindir}/pydoc3" |
227 | FILES_${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAJMIN}" | 227 | FILES_${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAJMIN}" |
228 | 228 | ||
229 | PACKAGES =+ "${PN}-pyvenv" | 229 | # provide python-pyvenv from python3-venv |
230 | FILES_${PN}-pyvenv += "${bindir}/pyvenv-${PYTHON_MAJMIN} ${bindir}/pyvenv" | 230 | RPROVIDES_${PN}-venv += "${PN}-pyvenv" |
231 | 231 | ||
232 | # package libpython3 | 232 | # package libpython3 |
233 | PACKAGES =+ "libpython3 libpython3-staticdev" | 233 | PACKAGES =+ "libpython3 libpython3-staticdev" |