post_install() {
echo "Installing dependencies for python-torch through pip..."
LD_PRELOAD='' LDFLAGS="-lpython3.12" MATHLIB="m" "/data/data/com.termux/files/usr/bin/pip3" install   torch
if [ -f "/data/data/com.termux/files/usr/bin/py3compile" ]; then
LD_PRELOAD='' "/data/data/com.termux/files/usr/bin/py3compile" -p "python-torch" "/data/data/com.termux/files/usr/lib/python3.12/"
fi
exit 0
}
post_upgrade() {
post_install
}
pre_remove() {
if [ -f "/data/data/com.termux/files/usr/bin/py3clean" ]; then
LD_PRELOAD='' "/data/data/com.termux/files/usr/bin/py3clean" -p "python-torch"
fi
exit 0
}
