Skip to content

Commit 9b59d01

Browse files
author
Ivan Zoratti
committed
pip3 in preinst
1 parent 79faef9 commit 9b59d01

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

packages/Debian/armhf/DEBIAN/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Version: 0.0
33
Section: devel
44
Priority: optional
55
Architecture: armhf
6-
Depends: postgresql,postgresql-server-dev-9.6,libpq-dev,autoconf,libtool,jq,libboost-dev,libboost-system-dev,libboost-thread-dev,sqlite3,python-setuptools,python3.5-dev,python3-dbus
6+
Depends: postgresql,postgresql-server-dev-9.6,libpq-dev,autoconf,libtool,jq,libboost-dev,libboost-system-dev,libboost-thread-dev,sqlite3,python-setuptools,python3.5-dev,python3-dbus,python3-pip
77
Conflicts:
88
Maintainer: Dianomic Systems, Inc. <[email protected]>
99
Homepage: http://www.dianomic.com

packages/Debian/common/DEBIAN/preinst

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

69+
install_pip3_packages() {
70+
71+
pip3 install --upgrade pip
72+
pip3 install psycopg2
73+
pip3 install aiohttp
74+
pip3 install aiohttp_cors
75+
pip3 install chardet
76+
pip3 install requests
77+
pip3 install pyjwt
78+
pip3 install pyparsing
79+
pip3 install aiocoap
80+
pip3 install cbor2
81+
pip3 install pexpect
82+
pip3 install pyjq
83+
84+
}
85+
6986
# main
7087
echo "preinst begin"
7188
# check if foglamp is installed
@@ -94,6 +111,9 @@ then
94111
echo "ERROR. There is no schema change path from the installed version to the new version."
95112
exit 1
96113
fi
114+
115+
install_pip3_packages
116+
97117
else
98118
echo "FogLAMP is not installed"
99119
fi

packages/Debian/x86_64/DEBIAN/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Version: 0.0
33
Section: devel
44
Priority: optional
55
Architecture: amd64
6-
Depends: postgresql,postgresql-server-dev-9.6,libpq-dev,autoconf,libtool,jq,libboost-dev,libboost-system-dev,libboost-thread-dev,sqlite3,python-setuptools
6+
Depends: postgresql,postgresql-server-dev-9.6,libpq-dev,autoconf,libtool,jq,libboost-dev,libboost-system-dev,libboost-thread-dev,sqlite3,python-setuptools,python3-pip
77
Conflicts:
88
Maintainer: Dianomic Systems, Inc. <[email protected]>
99
Homepage: http://www.dianomic.com

0 commit comments

Comments
 (0)