Skip to content

Commit 119cadc

Browse files
committed
Replace pip with uv for package installations in setup.sh
1 parent 803db3b commit 119cadc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

setup.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function updateenv() {
4949
source .venv/bin/activate
5050
SYS_ARCH=$(uname -m)
5151
echo "pip install in-progress. Please wait..."
52-
${PYTHON} -m pip install --upgrade pip wheel setuptools
52+
${PYTHON} -m pip install --upgrade pip wheel setuptools uv
5353
REQUIREMENTS_HYPEROPT=""
5454
REQUIREMENTS_PLOT=""
5555
REQUIREMENTS_FREQAI=""
@@ -70,7 +70,7 @@ function updateenv() {
7070
fi
7171
if [ "${SYS_ARCH}" == "armv7l" ] || [ "${SYS_ARCH}" == "armv6l" ]; then
7272
echo "Detected Raspberry, installing cython, skipping hyperopt installation."
73-
${PYTHON} -m pip install --upgrade cython
73+
${PYTHON} -m uv pip install --upgrade cython
7474
else
7575
# Is not Raspberry
7676
read -p "Do you want to install hyperopt dependencies [y/N]? "
@@ -92,12 +92,12 @@ function updateenv() {
9292
fi
9393
fi
9494

95-
${PYTHON} -m pip install --upgrade -r ${REQUIREMENTS} ${REQUIREMENTS_HYPEROPT} ${REQUIREMENTS_PLOT} ${REQUIREMENTS_FREQAI} ${REQUIREMENTS_FREQAI_RL}
95+
${PYTHON} -m uv pip install --upgrade -r ${REQUIREMENTS} ${REQUIREMENTS_HYPEROPT} ${REQUIREMENTS_PLOT} ${REQUIREMENTS_FREQAI} ${REQUIREMENTS_FREQAI_RL}
9696
if [ $? -ne 0 ]; then
9797
echo "Failed installing dependencies"
9898
exit 1
9999
fi
100-
${PYTHON} -m pip install -e .
100+
${PYTHON} -m uv pip install -e .
101101
if [ $? -ne 0 ]; then
102102
echo "Failed installing Freqtrade"
103103
exit 1
@@ -252,7 +252,7 @@ function install() {
252252

253253
function plot() {
254254
echo_block "Installing dependencies for Plotting scripts"
255-
${PYTHON} -m pip install plotly --upgrade
255+
${PYTHON} -m uv pip install plotly --upgrade
256256
}
257257

258258
function help() {

0 commit comments

Comments
 (0)