-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
39 lines (32 loc) · 969 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/bash
# Test PyQt5
if ! python3 -c "import PyQt5" &> /dev/null; then
echo "Warning: can not use evd due to missing package PyQt5"
return
fi
# Test PyQtGraph
if ! python3 -c "import pyqtgraph" &> /dev/null; then
echo "Warning: can not use evd due to missing package pyqtgraph"
return
fi
# Test argparse
if ! python3 -c "import argparse" &> /dev/null; then
echo "Warning: can not use evd due to missing package argparse"
return
fi
# Test pyyaml
if ! python3 -c "import yaml" &> /dev/null; then
echo "Warning: can not use evd due to missing package yaml"
return
fi
# Test qdarkstyle
if ! python3 -c "import qdarkstyle" &> /dev/null; then
echo "Warning: can not use evd due to missing package qdarkstyle"
return
fi
# Test pyfirmata
if ! python3 -c "import pyfirmata" &> /dev/null; then
echo "Warning: can not use evd due to missing package pyfirmata"
return
fi
echo "All python packages installed and found."