mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 23:12:02 +08:00
2c2c7a9de4
This change bumps numpy to 2.3.2 Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
21 lines
267 B
Bash
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
|
|
|