This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
forked from pragmagrid/lifemapper-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.txt
57 lines (50 loc) · 1.84 KB
/
test.txt
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
finish_wheel_installs () {
WHL_DIR=/opt/lifemapper/rocks/etc
ORDERED_PKGS="numpy python_dateutil pyparsing kiwisolver cycler matplotlib"
/opt/python/bin/python3.6 -m ensurepip --default-pip
for p in $ORDERED_PKGS
do
echo "Install $p wheel ..."
wname=$WHL_DIR/$p*whl
/opt/python/bin/python3.6 -m pip install $wname
done
INSTALLED_PKGS=`python3.6 -m pip list | grep -v Package | grep -v "^----" | awk '{print $1}'`
# install rest of wheel files, ignore previously installed files
FILES=$WHL_DIR/*whl
startidx=$((${#WHL_DIR} + 2))
for f in $FILES
do
filelen=${#f}
pkgname=$(echo $f | cut -c$startidx-$filelen | cut -d'-' -f1)
echo $pkgname
if [[ ${INSTALLED_PKGS[*]} =~ $pkgname ]]; then
echo "$pkgname installed already ..."
else
echo "Install $pkgname from $f file..."
fi
done
}
WHL_DIR=/opt/lifemapper/rocks/etc
ORDERED_PKGS="numpy python-dateutil pyparsing kiwisolver cycler matplotlib"
/opt/python/bin/python3.6 -m ensurepip --default-pip
for p in $ORDERED_PKGS
do
echo "**** Install $p wheel ..."
wname=$WHL_DIR/$p*whl
/opt/python/bin/python3.6 -m pip install $wname
done
INSTALLED_PKGS=`python3.6 -m pip list | grep -v Package | grep -v "^----" | awk '{print $1}'`
# install rest of wheel files, ignore previously installed files
FILES=$WHL_DIR/*whl
startidx=$((${#WHL_DIR} + 2))
for f in $FILES
do
filelen=${#f}
pkgname=$(echo $f | cut -c$startidx-$filelen | cut -d'-' -f1)
echo $pkgname
if [[ ${INSTALLED_PKGS[*]} =~ $pkgname ]]; then
echo "**** $pkgname installed already ..."
else
echo "**** Install $pkgname from $f file..."
fi
done