summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2023-10-02 12:04:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-04 23:55:12 +0100
commit5aa44d46c696c9ce18ee305667bf9946fa0eeb49 (patch)
treea7b1d183706a27d8ee454d9efcf7dba12195b298
parentc99934f6830043409f47cb0c8a8b4a80a4a85be7 (diff)
downloadpoky-5aa44d46c696c9ce18ee305667bf9946fa0eeb49.tar.gz
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: https://github.com/python/cpython/commit/33d95c6facdfda3c8c0feffa7a99184e4abc2f63 (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>
-rw-r--r--meta/recipes-devtools/python/python3-numpy_1.26.0.bb9
1 files changed, 0 insertions, 9 deletions
diff --git a/meta/recipes-devtools/python/python3-numpy_1.26.0.bb b/meta/recipes-devtools/python/python3-numpy_1.26.0.bb
index 4e1e34e8df..3ae40a33fb 100644
--- a/meta/recipes-devtools/python/python3-numpy_1.26.0.bb
+++ b/meta/recipes-devtools/python/python3-numpy_1.26.0.bb
@@ -30,15 +30,6 @@ do_compile:prepend() {
30 export NPY_DISABLE_SVML=1 30 export NPY_DISABLE_SVML=1
31} 31}
32 32
33# Unfortunately the following pyc files are non-deterministc due to 'frozenset'
34# being written without strict ordering, even with PYTHONHASHSEED = 0
35# Upstream is discussing ways to solve the issue properly, until then let's
36# just not install the problematic files.
37# More info: http://benno.id.au/blog/2013/01/15/python-determinism
38do_install:append() {
39 rm ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/typing/tests/data/pass/__pycache__/literal.cpython*
40}
41
42FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a ${PYTHON_SITEPACKAGES_DIR}/numpy/random/lib/*.a" 33FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/numpy/core/lib/*.a ${PYTHON_SITEPACKAGES_DIR}/numpy/random/lib/*.a"
43 34
44# install what is needed for numpy.test() 35# install what is needed for numpy.test()