some python fixes

This commit is contained in:
Pünkösd Marcell 2021-07-20 03:16:27 +02:00
parent ed831c5e9f
commit 82fa3878e8
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
VERSION="1"
RUNTIME_PACKAGES="python3 udev alsa-utils alsa-utils-doc alsa-lib alsaconf py3-rpigpio py3-pip py3-numpy py3-kiwisolver py3-scikit-learn py3-scipy py3-joblib py3-cycler py3-matplotlib py3-simplejson"
RUNTIME_PACKAGES="python3 udev alsa-utils alsa-utils-doc alsa-lib alsaconf py3-rpigpio py3-pip py3-numpy py3-kiwisolver py3-scikit-learn py3-scipy py3-joblib py3-cycler py3-matplotlib py3-simplejson py3-tqdm"
BUILD_PACKAGES="alsa-lib-dev gcc g++ python3-dev musl-dev py3-numpy-dev"
# put back the resolv.conf to keep apk working
@ -50,6 +50,9 @@ chroot_exec pip3 install -r /opt/iot-logic/requirements.txt
# clean build dependencies
chroot_exec apk del $BUILD_PACKAGES
# dirty hack, so that there won't be pyc files compiled for the wrong architecture
find ${ROOTFS_PATH}/usr -name '*.pyc' -delete
# Put back resolv.conf where it was
rm ${ROOTFS_PATH}/etc/resolv.conf
ln -fs /data/etc/resolv.conf ${ROOTFS_PATH}/etc/resolv.conf