* [PATCH V2] python-numpy: move recipe to python directory
@ 2021-11-13 17:02 Yi Zhao
2021-11-13 17:17 ` Alexander Kanavin
2021-11-13 17:35 ` [OE-core] " Richard Purdie
0 siblings, 2 replies; 3+ messages in thread
From: Yi Zhao @ 2021-11-13 17:02 UTC (permalink / raw)
To: openembedded-core; +Cc: alex.kanavin
This recipe had been moved out from python directory since 2016[1] in
order to share patches between python2 and python3. But now there is no
reason to keep it in its own directory as we only keep python3-nump.
Move it back to python directory.
Also add python3-json to RDEPENDS to fix import error:
$ python3
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.10/site-packages/numpy/__init__.py", line 138, in <module>
from ._version import get_versions
File "/usr/lib/python3.10/site-packages/numpy/_version.py", line 7, in <module>
import json
ModuleNotFoundError: No module named 'json'
>>>
[1] https://git.openembedded.org/openembedded-core/commit/?id=9bffe2f9fb4ce6c0b265f27e5b484fbe076c6349
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
...01-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch | 0
.../python3-numpy}/0001-numpy-core-Define-RISCV-32-support.patch | 0
.../{python-numpy/files => python/python3-numpy}/run-ptest | 0
.../{python-numpy => python}/python3-numpy_1.21.4.bb | 1 +
4 files changed, 1 insertion(+)
rename meta/recipes-devtools/{python-numpy/files => python/python3-numpy}/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch (100%)
rename meta/recipes-devtools/{python-numpy/files => python/python3-numpy}/0001-numpy-core-Define-RISCV-32-support.patch (100%)
rename meta/recipes-devtools/{python-numpy/files => python/python3-numpy}/run-ptest (100%)
rename meta/recipes-devtools/{python-numpy => python}/python3-numpy_1.21.4.bb (98%)
diff --git a/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch b/meta/recipes-devtools/python/python3-numpy/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
similarity index 100%
rename from meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
rename to meta/recipes-devtools/python/python3-numpy/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
diff --git a/meta/recipes-devtools/python-numpy/files/0001-numpy-core-Define-RISCV-32-support.patch b/meta/recipes-devtools/python/python3-numpy/0001-numpy-core-Define-RISCV-32-support.patch
similarity index 100%
rename from meta/recipes-devtools/python-numpy/files/0001-numpy-core-Define-RISCV-32-support.patch
rename to meta/recipes-devtools/python/python3-numpy/0001-numpy-core-Define-RISCV-32-support.patch
diff --git a/meta/recipes-devtools/python-numpy/files/run-ptest b/meta/recipes-devtools/python/python3-numpy/run-ptest
similarity index 100%
rename from meta/recipes-devtools/python-numpy/files/run-ptest
rename to meta/recipes-devtools/python/python3-numpy/run-ptest
diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.21.4.bb b/meta/recipes-devtools/python/python3-numpy_1.21.4.bb
similarity index 98%
rename from meta/recipes-devtools/python-numpy/python3-numpy_1.21.4.bb
rename to meta/recipes-devtools/python/python3-numpy_1.21.4.bb
index 8988a5bc39..a3ea4ab5aa 100644
--- a/meta/recipes-devtools/python-numpy/python3-numpy_1.21.4.bb
+++ b/meta/recipes-devtools/python/python3-numpy_1.21.4.bb
@@ -47,6 +47,7 @@ RDEPENDS:${PN} = "${PYTHON_PN}-unittest \
${PYTHON_PN}-ctypes \
${PYTHON_PN}-threading \
${PYTHON_PN}-multiprocessing \
+ ${PYTHON_PN}-json \
"
RDEPENDS:${PN}-ptest += "${PYTHON_PN}-pytest \
${PYTHON_PN}-hypothesis \
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH V2] python-numpy: move recipe to python directory
2021-11-13 17:02 [PATCH V2] python-numpy: move recipe to python directory Yi Zhao
@ 2021-11-13 17:17 ` Alexander Kanavin
2021-11-13 17:35 ` [OE-core] " Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Alexander Kanavin @ 2021-11-13 17:17 UTC (permalink / raw)
To: Yi Zhao; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 3804 bytes --]
This is identical to v1 :)
Alex
On Sat, 13 Nov 2021 at 18:02, Yi Zhao <yi.zhao@windriver.com> wrote:
> This recipe had been moved out from python directory since 2016[1] in
> order to share patches between python2 and python3. But now there is no
> reason to keep it in its own directory as we only keep python3-nump.
> Move it back to python directory.
>
> Also add python3-json to RDEPENDS to fix import error:
> $ python3
> >>> import numpy
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python3.10/site-packages/numpy/__init__.py", line 138, in
> <module>
> from ._version import get_versions
> File "/usr/lib/python3.10/site-packages/numpy/_version.py", line 7, in
> <module>
> import json
> ModuleNotFoundError: No module named 'json'
> >>>
>
> [1]
> https://git.openembedded.org/openembedded-core/commit/?id=9bffe2f9fb4ce6c0b265f27e5b484fbe076c6349
>
> Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
> ---
> ...01-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch | 0
> .../python3-numpy}/0001-numpy-core-Define-RISCV-32-support.patch | 0
> .../{python-numpy/files => python/python3-numpy}/run-ptest | 0
> .../{python-numpy => python}/python3-numpy_1.21.4.bb | 1 +
> 4 files changed, 1 insertion(+)
> rename meta/recipes-devtools/{python-numpy/files =>
> python/python3-numpy}/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
> (100%)
> rename meta/recipes-devtools/{python-numpy/files =>
> python/python3-numpy}/0001-numpy-core-Define-RISCV-32-support.patch (100%)
> rename meta/recipes-devtools/{python-numpy/files =>
> python/python3-numpy}/run-ptest (100%)
> rename meta/recipes-devtools/{python-numpy => python}/
> python3-numpy_1.21.4.bb (98%)
>
> diff --git
> a/meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
> b/meta/recipes-devtools/python/python3-numpy/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
> similarity index 100%
> rename from
> meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
> rename to
> meta/recipes-devtools/python/python3-numpy/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch
> diff --git
> a/meta/recipes-devtools/python-numpy/files/0001-numpy-core-Define-RISCV-32-support.patch
> b/meta/recipes-devtools/python/python3-numpy/0001-numpy-core-Define-RISCV-32-support.patch
> similarity index 100%
> rename from
> meta/recipes-devtools/python-numpy/files/0001-numpy-core-Define-RISCV-32-support.patch
> rename to
> meta/recipes-devtools/python/python3-numpy/0001-numpy-core-Define-RISCV-32-support.patch
> diff --git a/meta/recipes-devtools/python-numpy/files/run-ptest
> b/meta/recipes-devtools/python/python3-numpy/run-ptest
> similarity index 100%
> rename from meta/recipes-devtools/python-numpy/files/run-ptest
> rename to meta/recipes-devtools/python/python3-numpy/run-ptest
> diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.21.4.bb
> b/meta/recipes-devtools/python/python3-numpy_1.21.4.bb
> similarity index 98%
> rename from meta/recipes-devtools/python-numpy/python3-numpy_1.21.4.bb
> rename to meta/recipes-devtools/python/python3-numpy_1.21.4.bb
> index 8988a5bc39..a3ea4ab5aa 100644
> --- a/meta/recipes-devtools/python-numpy/python3-numpy_1.21.4.bb
> +++ b/meta/recipes-devtools/python/python3-numpy_1.21.4.bb
> @@ -47,6 +47,7 @@ RDEPENDS:${PN} = "${PYTHON_PN}-unittest \
> ${PYTHON_PN}-ctypes \
> ${PYTHON_PN}-threading \
> ${PYTHON_PN}-multiprocessing \
> + ${PYTHON_PN}-json \
> "
> RDEPENDS:${PN}-ptest += "${PYTHON_PN}-pytest \
> ${PYTHON_PN}-hypothesis \
> --
> 2.25.1
>
>
[-- Attachment #2: Type: text/html, Size: 5303 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH V2] python-numpy: move recipe to python directory
2021-11-13 17:02 [PATCH V2] python-numpy: move recipe to python directory Yi Zhao
2021-11-13 17:17 ` Alexander Kanavin
@ 2021-11-13 17:35 ` Richard Purdie
1 sibling, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2021-11-13 17:35 UTC (permalink / raw)
To: Yi Zhao, openembedded-core; +Cc: alex.kanavin
On Sun, 2021-11-14 at 01:02 +0800, Yi Zhao wrote:
> This recipe had been moved out from python directory since 2016[1] in
> order to share patches between python2 and python3. But now there is no
> reason to keep it in its own directory as we only keep python3-nump.
> Move it back to python directory.
>
> Also add python3-json to RDEPENDS to fix import error:
> $ python3
> > > > import numpy
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python3.10/site-packages/numpy/__init__.py", line 138, in <module>
> from ._version import get_versions
> File "/usr/lib/python3.10/site-packages/numpy/_version.py", line 7, in <module>
> import json
> ModuleNotFoundError: No module named 'json'
> > >
Please make these two separate commits since they're not really related.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-13 17:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-13 17:02 [PATCH V2] python-numpy: move recipe to python directory Yi Zhao
2021-11-13 17:17 ` Alexander Kanavin
2021-11-13 17:35 ` [OE-core] " Richard Purdie
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.