Skip to content

Commit 331717c

Browse files
authored
Merge pull request #5 from foglamp/FOGL-1319
FOGL-1319 change to use requirements.txt for python package installation
2 parents f020c7a + 77db639 commit 331717c

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

packages/Debian/common/DEBIAN/postinst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,13 @@ copy_new_data () {
7070
fi
7171
}
7272

73-
# main
73+
install_pip3_packages () {
74+
pip3 install -r /usr/local/foglamp/python/requirements.txt
75+
}
7476

77+
# main
78+
echo "Install python dependencies"
79+
install_pip3_packages
7580
echo "Resolving data directory"
7681
copy_new_data
7782
echo "Installing service script"

packages/Debian/common/DEBIAN/preinst

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,6 @@ exists_schema_change_path () {
6666
echo 1
6767
}
6868

69-
install_pip3_packages() {
70-
71-
sudo pip3 install --upgrade pip
72-
sudo pip3 install psycopg2
73-
sudo pip3 install aiohttp
74-
sudo pip3 install aiohttp_cors
75-
sudo pip3 install chardet
76-
sudo pip3 install requests
77-
sudo pip3 install pyjwt
78-
sudo pip3 install pyparsing
79-
sudo pip3 install aiocoap
80-
sudo pip3 install cbor2
81-
sudo pip3 install pexpect
82-
sudo pip3 install pyjq
83-
84-
}
85-
8669
# main
8770

8871
# check if foglamp is installed
@@ -114,5 +97,4 @@ then
11497

11598
fi
11699

117-
install_pip3_packages
118100

0 commit comments

Comments
 (0)