diff options
Diffstat (limited to 'meta/recipes-devtools/python-numpy')
| -rw-r--r-- | meta/recipes-devtools/python-numpy/files/run-ptest | 5 | ||||
| -rw-r--r-- | meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python-numpy/files/run-ptest b/meta/recipes-devtools/python-numpy/files/run-ptest new file mode 100644 index 0000000000..9a1c72aeb1 --- /dev/null +++ b/meta/recipes-devtools/python-numpy/files/run-ptest | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | #!/usr/bin/env python3 | ||
| 2 | |||
| 3 | import numpy | ||
| 4 | numpy.test(label='full', verbose=2) | ||
| 5 | |||
diff --git a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb index d54f2f6c18..2bfc913aa0 100644 --- a/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb +++ b/meta/recipes-devtools/python-numpy/python3-numpy_1.19.4.bb | |||
| @@ -8,6 +8,7 @@ SRCNAME = "numpy" | |||
| 8 | SRC_URI = "https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz \ | 8 | SRC_URI = "https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz \ |
| 9 | file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \ | 9 | file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \ |
| 10 | file://0001-numpy-core-Define-RISCV-32-support.patch \ | 10 | file://0001-numpy-core-Define-RISCV-32-support.patch \ |
| 11 | file://run-ptest \ | ||
| 11 | " | 12 | " |
| 12 | SRC_URI[sha256sum] = "fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413" | 13 | SRC_URI[sha256sum] = "fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413" |
| 13 | 14 | ||
| @@ -16,7 +17,7 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar" | |||
| 16 | 17 | ||
| 17 | DEPENDS += "python3-cython-native" | 18 | DEPENDS += "python3-cython-native" |
| 18 | 19 | ||
| 19 | inherit setuptools3 | 20 | inherit ptest setuptools3 |
| 20 | 21 | ||
| 21 | S = "${WORKDIR}/numpy-${PV}" | 22 | S = "${WORKDIR}/numpy-${PV}" |
| 22 | 23 | ||
| @@ -30,7 +31,6 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \ | |||
| 30 | ${PYTHON_PN}-pprint \ | 31 | ${PYTHON_PN}-pprint \ |
| 31 | ${PYTHON_PN}-pickle \ | 32 | ${PYTHON_PN}-pickle \ |
| 32 | ${PYTHON_PN}-shell \ | 33 | ${PYTHON_PN}-shell \ |
| 33 | ${PYTHON_PN}-nose \ | ||
| 34 | ${PYTHON_PN}-doctest \ | 34 | ${PYTHON_PN}-doctest \ |
| 35 | ${PYTHON_PN}-datetime \ | 35 | ${PYTHON_PN}-datetime \ |
| 36 | ${PYTHON_PN}-distutils \ | 36 | ${PYTHON_PN}-distutils \ |
| @@ -46,6 +46,12 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \ | |||
| 46 | ${PYTHON_PN}-threading \ | 46 | ${PYTHON_PN}-threading \ |
| 47 | ${PYTHON_PN}-multiprocessing \ | 47 | ${PYTHON_PN}-multiprocessing \ |
| 48 | " | 48 | " |
| 49 | RDEPENDS_${PN}-ptest += "${PYTHON_PN}-pytest \ | ||
| 50 | ${PYTHON_PN}-hypothesis \ | ||
| 51 | ${PYTHON_PN}-sortedcontainers \ | ||
| 52 | ${PYTHON_PN}-resource \ | ||
| 53 | ldd \ | ||
| 54 | " | ||
| 49 | 55 | ||
| 50 | RDEPENDS_${PN}_class-native = "" | 56 | RDEPENDS_${PN}_class-native = "" |
| 51 | 57 | ||
