Skip to content

Commit a5e5650

Browse files
Merge pull request #70 from fledge-iot/FOGL-6525.patch2
pip3 command is replaced with python3 -m pip
2 parents 40a343b + b0f9c40 commit a5e5650

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/RPM/SPECS/fledge.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ install_pip3_packages () {
405405
source scl_source enable rh-python36
406406

407407
# TODO: we may need with --no-cache-dir
408-
pip3 install -Ir /usr/local/fledge/python/requirements.txt
408+
python3 -m pip install -Ir /usr/local/fledge/python/requirements.txt
409409

410410
sudo bash -c 'source scl_source enable rh-python36; python3 -m pip install dbus-python numpy==1.19.5'
411411
set -e

plugins/packages/DEBIAN/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if [ -f /usr/local/fledge/python/extras_install___PLUGIN_NAME__.sh ]; then
4141
fi
4242
# Install Python pip dependencies; if any
4343
if [ -f /usr/local/fledge/__INSTALL_DIR__/requirements.txt ]; then
44-
pip3 install -Ir /usr/local/fledge/__INSTALL_DIR__/requirements.txt
44+
python3 -m pip install -Ir /usr/local/fledge/__INSTALL_DIR__/requirements.txt
4545
fi
4646

4747
# For C based plugins

0 commit comments

Comments
 (0)