mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
Use --break-system-packages when installing test dependencies with pip because we aint running them in a venv
This commit is contained in:
parent
804c95f0a2
commit
cd8169bbfe
1 changed files with 2 additions and 2 deletions
4
ynh-dev
4
ynh-dev
|
@ -439,13 +439,13 @@ function run_tests()
|
||||||
if ! type "pytest" > /dev/null 2>&1; then
|
if ! type "pytest" > /dev/null 2>&1; then
|
||||||
info "> Installing pytest ..."
|
info "> Installing pytest ..."
|
||||||
apt-get install python3-pip -y
|
apt-get install python3-pip -y
|
||||||
pip3 install pytest pytest-sugar
|
pip3 install pytest pytest-sugar --break-system-packages
|
||||||
fi
|
fi
|
||||||
for DEP in "pytest-mock requests-mock mock"
|
for DEP in "pytest-mock requests-mock mock"
|
||||||
do
|
do
|
||||||
if [ -z "$(pip3 show $DEP)" ]; then
|
if [ -z "$(pip3 show $DEP)" ]; then
|
||||||
info "Installing $DEP with pip3"
|
info "Installing $DEP with pip3"
|
||||||
pip3 install $DEP
|
pip3 install $DEP --break-system-packages
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue