Files
packages/lang/python/numpy/test.sh
Alexandru Ardelean 2c2c7a9de4 numpy: bump to version 2.3.2
This change bumps numpy to 2.3.2

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-08-14 15:10:10 +03:00

21 lines
267 B
Bash

#!/bin/sh
[ "$1" = "python3-numpy" ] || exit 0
EXP_VER="$2"
python3 - << EOF
import sys
import numpy as np
if (np.__version__ != "$EXP_VER"):
print("Got incorrect version: " + np.__version__)
sys.exit(1)
arr = np.array([1, 2, 3, 4, 5])
print(arr)
EOF