blob: 8e09585712d0e3df0b4c8c052de6af8c45e0d6c3 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "A sophisticated Numeric Processing Package for Python"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002HOMEPAGE = "https://numpy.org/"
3DESCRIPTION = "NumPy is the fundamental package needed for scientific computing with Python."
Brad Bishop316dfdd2018-06-25 12:45:53 -04004SECTION = "devel/python"
Andrew Geissler5199d832021-09-24 16:47:35 -05005LICENSE = "BSD-3-Clause & BSD-2-Clause & PSF & Apache-2.0 & MIT"
Andrew Geissler5f350902021-07-23 13:09:54 -04006LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b076ad374a7d311ba3126a22b2d52596"
Brad Bishop316dfdd2018-06-25 12:45:53 -04007
8SRCNAME = "numpy"
9
10SRC_URI = "https://github.com/${SRCNAME}/${SRCNAME}/releases/download/v${PV}/${SRCNAME}-${PV}.tar.gz \
11 file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \
Andrew Geissler6ce62a22020-11-30 19:58:47 -060012 file://0001-numpy-core-Define-RISCV-32-support.patch \
13 file://run-ptest \
14"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050015SRC_URI[sha256sum] = "76af194fbc117934ec5bbe2ff15177adbd05aeed23f18ee209ed88edcd777e05"
Brad Bishop316dfdd2018-06-25 12:45:53 -040016
17UPSTREAM_CHECK_URI = "https://github.com/numpy/numpy/releases"
18UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
19
Andrew Geissler82c905d2020-04-13 13:39:40 -050020DEPENDS += "python3-cython-native"
21
Andrew Geissler6ce62a22020-11-30 19:58:47 -060022inherit ptest setuptools3
23
Brad Bishop316dfdd2018-06-25 12:45:53 -040024S = "${WORKDIR}/numpy-${PV}"
25
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080026CLEANBROKEN = "1"
27
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a ${PYTHON_SITEPACKAGES_DIR}/numpy/random/lib/*.a"
Brad Bishop316dfdd2018-06-25 12:45:53 -040029
30# install what is needed for numpy.test()
Patrick Williams213cb262021-08-07 19:21:33 -050031RDEPENDS:${PN} = "${PYTHON_PN}-unittest \
Brad Bishop316dfdd2018-06-25 12:45:53 -040032 ${PYTHON_PN}-difflib \
33 ${PYTHON_PN}-pprint \
34 ${PYTHON_PN}-pickle \
35 ${PYTHON_PN}-shell \
Brad Bishop316dfdd2018-06-25 12:45:53 -040036 ${PYTHON_PN}-doctest \
37 ${PYTHON_PN}-datetime \
38 ${PYTHON_PN}-distutils \
39 ${PYTHON_PN}-misc \
40 ${PYTHON_PN}-mmap \
41 ${PYTHON_PN}-netclient \
42 ${PYTHON_PN}-numbers \
43 ${PYTHON_PN}-pydoc \
44 ${PYTHON_PN}-pkgutil \
45 ${PYTHON_PN}-email \
46 ${PYTHON_PN}-compression \
47 ${PYTHON_PN}-ctypes \
48 ${PYTHON_PN}-threading \
Brad Bishop79641f22019-09-10 07:20:22 -040049 ${PYTHON_PN}-multiprocessing \
Brad Bishop316dfdd2018-06-25 12:45:53 -040050"
Patrick Williams213cb262021-08-07 19:21:33 -050051RDEPENDS:${PN}-ptest += "${PYTHON_PN}-pytest \
Andrew Geissler6ce62a22020-11-30 19:58:47 -060052 ${PYTHON_PN}-hypothesis \
53 ${PYTHON_PN}-sortedcontainers \
54 ${PYTHON_PN}-resource \
55 ldd \
56"
Brad Bishop316dfdd2018-06-25 12:45:53 -040057
Brad Bishop316dfdd2018-06-25 12:45:53 -040058BBCLASSEXTEND = "native nativesdk"