Allow ubuntu_install_darknet.sh to work in both 18.04 and 16.04 (#5574)
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Tue, 12 May 2020 21:27:05 +0000 (22:27 +0100)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 21:27:05 +0000 (14:27 -0700)
docker/install/ubuntu_install_darknet.sh

index 0238b92..c48724c 100755 (executable)
@@ -22,5 +22,8 @@ set -o pipefail
 
 #install the necessary dependancies, cffi, opencv
 wget -q 'https://github.com/siju-samuel/darknet/blob/master/lib/libdarknet.so?raw=true' -O libdarknet.so
-pip2 install opencv-python cffi
+debian_version=`cat /etc/debian_version`
+if [ "$debian_version" == "stretch/sid" ]; then
+    pip2 install opencv-python cffi
+fi
 pip3 install opencv-python cffi