]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python3-numpy: remove obsolete reproducible workaround
authorRoss Burton <ross.burton@arm.com>
Mon, 2 Oct 2023 11:04:05 +0000 (12:04 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Oct 2023 22:54:51 +0000 (23:54 +0100)
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

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>
meta/recipes-devtools/python/python3-numpy_1.26.0.bb

index 4e1e34e8df32df943a2e5168e7b7b1fe1098c53c..3ae40a33fb4bcf8b6b5a9497927af94319515bba 100644 (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()