mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 06:32:11 +02:00
prservice.py: fix do_package with newer Python in Ubuntu 20.04
* with Ubuntu 20.04 which is using python 3.8 I'm seeing a lot of errors like:
ERROR: libxml2-2.9.10-r0 do_package: Can NOT get PRAUTO, exception No module named '_sysconfigdata'
not sure what caused this from python 3.8, but this seems to work
* PRserv is enabled with:
PRSERV_HOST = "localhost:0"
(From OE-Core rev: 4b26eaf7152fb712aba47a0c746333578f58ee8d)
(From OE-Core rev: c314c6695acca9ea68e38359fb03a94afa37bb2b)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c23d6f7799)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
67b329daf9
commit
0e0be80a89
@@ -3,6 +3,10 @@
|
||||
#
|
||||
|
||||
def prserv_make_conn(d, check = False):
|
||||
# Otherwise this fails when called from recipes which e.g. inherit python3native (which sets _PYTHON_SYSCONFIGDATA_NAME) with:
|
||||
# No module named '_sysconfigdata'
|
||||
if '_PYTHON_SYSCONFIGDATA_NAME' in os.environ:
|
||||
del os.environ['_PYTHON_SYSCONFIGDATA_NAME']
|
||||
import prserv.serv
|
||||
host_params = list([_f for _f in (d.getVar("PRSERV_HOST") or '').split(':') if _f])
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user