File tree 2 files changed +16
-9
lines changed
2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 7
7
# Requirements for using -x
8
8
pyvirtualdisplay
9
9
pyscreenshot
10
+ --allow-external =PIL
11
+ --allow-unverified =PIL
10
12
PIL
Original file line number Diff line number Diff line change 39
39
40
40
source bin/activate
41
41
42
- # Check if the dependencies are installed
43
- pip install --no-download -r requirements.txt > /dev/null 2>&1
44
- if [ $? -ne 0 ]; then
45
- # Install dependencies
46
- pip install -r requirements.txt --upgrade
42
+ function ensureRequirementsMet() {
43
+ # Check if installed
44
+ pip install --no-download $@ > /dev/null 2>&1
47
45
if [ $? -ne 0 ]; then
48
- cat << EOF
49
- Unable to install the required dependencies. Please see error output above.
46
+ # Install dependencies
47
+ pip install --upgrade $@
48
+ if [ $? -ne 0 ]; then
49
+ cat << EOF
50
+ Unable to install dependencies. Please see error output above.
50
51
EOF
51
- exit 1
52
+ exit 1
53
+ fi
52
54
fi
53
- fi
55
+ }
56
+
57
+ ensureRequirementsMet ' pip>=1.5'
58
+ ensureRequirementsMet -r requirements.txt
54
59
55
60
cd $OLD_PWD
You can’t perform that action at this time.
0 commit comments