All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yu, Mingli" <mingli.yu@windriver.com>
To: Alejandro Hernandez Samaniego <alhe@linux.microsoft.com>,
	openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] python3: add pydoc and urllib to core
Date: Tue, 19 May 2020 14:23:12 +0800	[thread overview]
Message-ID: <eec920df-d834-c791-73fb-d5d64fe7de84@windriver.com> (raw)
In-Reply-To: <777387e3-f259-c635-77f1-1edb9b1704ff@linux.microsoft.com>

Hi Alejandro,

On 2020/5/18 下午11:36, Alejandro Hernandez Samaniego wrote:
> Hello Mingli,
> 
> Did you happen to run the create_manifest task after modifying the 
> manifest to make sure that runtime dependencies are still valid?

Yes, did run "bitbake python3 -c create_manifest" on my side and also
did some adjustment after run create_manifest.

Thanks,

> 
> 
> Thanks
> 
> Alejandro
> 
> On 5/18/20 12:32 AM, Yu, Mingli wrote:
>> From: Mingli Yu<mingli.yu@windriver.com>
>>
>> Add pydoc and urllib to core to fix below error:
>>   # python3
>>   >>> help()
>>   Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File "/usr/lib64/python3.8/sitebuiltins.py", line 102, in __call_
>>   import pydoc
>>   ModuleNotFoundError: No module named 'pydoc'
>>   File "/usr/lib64/python3.8/pydoc.py", line 72, in <module>
>>   import urllib.parse
>>   ModuleNotFoundError: No module named 'urllib'
>>
>> Signed-off-by: Mingli Yu<mingli.yu@windriver.com>
>> ---
>>   .../python/python3/python3-manifest.json      | 24 +++++--------------
>>   meta/recipes-devtools/python/python3_3.8.2.bb |  3 +--
>>   2 files changed, 7 insertions(+), 20 deletions(-)
>>
>> diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json b/meta/recipes-devtools/python/python3/python3-manifest.json
>> index 3bcc9b8662..808eadb8f6 100644
>> --- a/meta/recipes-devtools/python/python3/python3-manifest.json
>> +++ b/meta/recipes-devtools/python/python3/python3-manifest.json
>> @@ -203,6 +203,7 @@
>>               "${bindir}/python${PYTHON_MAJMIN}",
>>               "${bindir}/python${PYTHON_MAJMIN}.real",
>>               "${bindir}/python3",
>> +            "${bindir}/pydoc*",
>>               "${includedir}/python${PYTHON_MAJMIN}/pyconfig*.h",
>>               "${libdir}/python${PYTHON_MAJMIN}/UserDict.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/UserList.py",
>> @@ -289,6 +290,7 @@
>>               "${libdir}/python${PYTHON_MAJMIN}/pkgutil.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/platform.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/posixpath.py",
>> +            "${libdir}/python${PYTHON_MAJMIN}/pydoc.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/re.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/reprlib.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/rlcompleter.py",
>> @@ -313,8 +315,11 @@
>>               "${libdir}/python${PYTHON_MAJMIN}/tokenize.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/traceback.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/types.py",
>> +            "${libdir}/python${PYTHON_MAJMIN}/urllib",
>> +            "${libdir}/python${PYTHON_MAJMIN}/urllib/__pycache__",
>>               "${libdir}/python${PYTHON_MAJMIN}/warnings.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/weakref.py",
>> +            "${libdir}/python${PYTHON_MAJMIN}/pydoc_data",
>>               "${prefix}/lib/python${PYTHON_MAJMIN}/config*/*[!.a]"
>>           ],
>>           "cached": [
>> @@ -363,6 +368,7 @@
>>               "${libdir}/python${PYTHON_MAJMIN}/__pycache__/pkgutil.*.pyc",
>>               "${libdir}/python${PYTHON_MAJMIN}/__pycache__/platform.*.pyc",
>>               "${libdir}/python${PYTHON_MAJMIN}/__pycache__/posixpath.*.pyc",
>> +            "${libdir}/python${PYTHON_MAJMIN}/__pycache__/pydoc.*.pyc",
>>               "${libdir}/python${PYTHON_MAJMIN}/__pycache__/re.*.pyc",
>>               "${libdir}/python${PYTHON_MAJMIN}/__pycache__/reprlib.*.pyc",
>>               "${libdir}/python${PYTHON_MAJMIN}/__pycache__/rlcompleter.*.pyc",
>> @@ -798,7 +804,6 @@
>>               "plistlib",
>>               "pprint",
>>               "profile",
>> -            "pydoc",
>>               "resource",
>>               "shell",
>>               "smtpd",
>> @@ -857,8 +862,6 @@
>>               "${libdir}/python${PYTHON_MAJMIN}/poplib.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/smtplib.py",
>>               "${libdir}/python${PYTHON_MAJMIN}/telnetlib.py",
>> -            "${libdir}/python${PYTHON_MAJMIN}/urllib",
>> -            "${libdir}/python${PYTHON_MAJMIN}/urllib/__pycache__",
>>               "${libdir}/python${PYTHON_MAJMIN}/uuid.py"
>>           ],
>>           "cached": [
>> @@ -989,21 +992,6 @@
>>               "${libdir}/python${PYTHON_MAJMIN}/__pycache__/pstats.*.pyc"
>>           ]
>>       },
>> -    "pydoc": {
>> -        "summary": "Python interactive help support",
>> -        "rdepends": [
>> -            "core",
>> -            "netclient"
>> -        ],
>> -        "files": [
>> -            "${bindir}/pydoc*",
>> -            "${libdir}/python${PYTHON_MAJMIN}/pydoc.py",
>> -            "${libdir}/python${PYTHON_MAJMIN}/pydoc_data"
>> -        ],
>> -        "cached": [
>> -            "${libdir}/python${PYTHON_MAJMIN}/__pycache__/pydoc.*.pyc"
>> -        ]
>> -    },
>>       "resource": {
>>           "summary": "Python resource control interface",
>>           "rdepends": [
>> diff --git a/meta/recipes-devtools/python/python3_3.8.2.bb b/meta/recipes-devtools/python/python3_3.8.2.bb
>> index a4a16fd495..36aa54ba6c 100644
>> --- a/meta/recipes-devtools/python/python3_3.8.2.bb
>> +++ b/meta/recipes-devtools/python/python3_3.8.2.bb
>> @@ -318,7 +318,6 @@ RRECOMMENDS_${PN}-crypt_append_class-nativesdk = " openssl ca-certificates"
>>   FILES_${PN} = ""
>>   RPROVIDES_${PN}-modules = "${PN}"
>>   
>> -FILES_${PN}-pydoc += "${bindir}/pydoc${PYTHON_MAJMIN} ${bindir}/pydoc3"
>>   FILES_${PN}-idle += "${bindir}/idle3 ${bindir}/idle${PYTHON_MAJMIN}"
>>   
>>   # provide python-pyvenv from python3-venv
>> @@ -332,7 +331,7 @@ INSANE_SKIP_${PN}-dev += "dev-elf"
>>   
>>   # catch all the rest (unsorted)
>>   PACKAGES += "${PN}-misc"
>> -RDEPENDS_${PN}-misc += "python3-core python3-email python3-codecs python3-pydoc python3-pickle python3-audio"
>> +RDEPENDS_${PN}-misc += "python3-core python3-email python3-codecs python3-pickle python3-audio"
>>   RDEPENDS_${PN}-modules_append_class-target = " python3-misc"
>>   RDEPENDS_${PN}-modules_append_class-nativesdk = " python3-misc"
>>   FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} ${libdir}/python${PYTHON_MAJMIN}/lib-dynload"
>>
>> 

  reply	other threads:[~2020-05-19  6:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18  7:32 [PATCH] python3: add pydoc and urllib to core Yu, Mingli
2020-05-18 15:36 ` [OE-core] " Alejandro Hernandez
2020-05-19  6:23   ` Yu, Mingli [this message]
     [not found] ` <1610296324895336.31912@lists.openembedded.org>
2020-05-19  7:22   ` Alejandro Hernandez
2020-05-19  7:43     ` Yu, Mingli
2020-05-19  7:51       ` Alejandro Hernandez
2020-05-19  8:22         ` Yu, Mingli
2020-05-19  9:47         ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eec920df-d834-c791-73fb-d5d64fe7de84@windriver.com \
    --to=mingli.yu@windriver.com \
    --cc=alhe@linux.microsoft.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.