Skip to contentSkip to conversation

python3-numpy: move recipe to python directory

PATCH New Yi Zhao 1 participant 2 messages Nov 14, 2021

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH v3 1/2 python3-numpy: move recipe to python directory

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.

[1] https://git.openembedded.org/openembedded-core/commit/?id=9bffe2f9fb4ce6c0b265f27e5b484fbe076c6349

---
 ...001-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              | 0
 4 files changed, 0 insertions(+), 0 deletions(-)
 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 (100%)
meta/recipes-devtools/python/python3-numpy/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch renamed from meta/recipes-devtools/python-numpy/files/0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch +0 -0
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
meta/recipes-devtools/python/python3-numpy/0001-numpy-core-Define-RISCV-32-support.patch renamed from meta/recipes-devtools/python-numpy/files/0001-numpy-core-Define-RISCV-32-support.patch +0 -0
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
meta/recipes-devtools/python/python3-numpy/run-ptest renamed from meta/recipes-devtools/python-numpy/files/run-ptest +0 -0
similarity index 100%
rename from meta/recipes-devtools/python-numpy/files/run-ptest
rename to meta/recipes-devtools/python/python3-numpy/run-ptest
meta/recipes-devtools/python/python3-numpy_1.21.4.bb renamed from meta/recipes-devtools/python-numpy/python3-numpy_1.21.4.bb +0 -0
similarity index 100%
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
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/2 python3-numpy: add python3-json to RDEPENDS

Fixes:

$ python3
Quoted 1 line
Quoted 1 line
Quoted 1 line

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'

Quoted 1 line
Quoted 1 line
Quoted 1 line
---
 meta/recipes-devtools/python/python3-numpy_1.21.4.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3-numpy_1.21.4.bb +1 -0
index 8988a5bc39..a3ea4ab5aa 100644
@@ -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 \
Signature · 1 line
2.25.1