mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 07:54:36 +00:00
33 lines
960 B
Bash
Executable File
33 lines
960 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
if command -v lsb_release 2>&1 >/dev/null; then
|
|
case "$(lsb_release -is)" in
|
|
Ubuntu | Debian )
|
|
if ! dpkg -l | grep python3-dev 2>&1 >/dev/null
|
|
then
|
|
echo "You need to install python3-dev for installing the other dependencies."
|
|
exit 1
|
|
fi
|
|
if ! gcc --version 2>&1 >/dev/null
|
|
then
|
|
echo "You need to install gcc for building Python dependencies."
|
|
exit 1
|
|
fi
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
if command -v uv >/dev/null 2>&1; then
|
|
echo "Using uv for faster environment setup..."
|
|
uv venv venv
|
|
uv pip install --python venv/bin/python -e chatmaild
|
|
uv pip install --python venv/bin/python -e cmdeploy
|
|
uv pip install --python venv/bin/python sphinx sphinxcontrib-mermaid sphinx-autobuild furo
|
|
else
|
|
python3 -m venv --upgrade-deps venv
|
|
venv/bin/pip install -e chatmaild
|
|
venv/bin/pip install -e cmdeploy
|
|
venv/bin/pip install sphinx sphinxcontrib-mermaid sphinx-autobuild furo
|
|
fi
|