python3-numpy: remove obsolete reproducible workaround

We currently delete some pycache files because frozenset wasn't able to
be reproducible, but this has been fixed in Python 3.11:

33d95c6fac

(From OE-Core rev: 5c287a896fa9f5cd05b6a2411528fdc8fb2579d6)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2023-10-02 12:04:05 +01:00
committed by Richard Purdie
parent c99934f683
commit 5aa44d46c6

View File

@@ -30,15 +30,6 @@ do_compile:prepend() {
export NPY_DISABLE_SVML=1
}
# Unfortunately the following pyc files are non-deterministc due to 'frozenset'
# being written without strict ordering, even with PYTHONHASHSEED = 0
# Upstream is discussing ways to solve the issue properly, until then let's
# just not install the problematic files.
# More info: http://benno.id.au/blog/2013/01/15/python-determinism
do_install:append() {
rm ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/typing/tests/data/pass/__pycache__/literal.cpython*
}
FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a ${PYTHON_SITEPACKAGES_DIR}/numpy/random/lib/*.a"
# install what is needed for numpy.test()