mirror of
https://github.com/chatmail/relay.git
synced 2026-08-30 03:53:14 +00:00
Instead a conftest.py close to the test files needs to opt into using plugin hooks and fixtures. also remove some packaging leftover with initenv.sh
30 lines
874 B
Bash
Executable File
30 lines
874 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
|
|
|
|
python3 -m venv --upgrade-deps venv
|
|
|
|
# an editable install puts src/ on sys.path, so a leftover egg-info there is
|
|
# found as a second distribution and keeps removed entry points registered
|
|
rm -rf chatmaild/src/*.egg-info cmdeploy/src/*.egg-info
|
|
|
|
venv/bin/pip install -e chatmaild
|
|
venv/bin/pip install -e cmdeploy
|
|
venv/bin/pip install sphinx sphinxcontrib-mermaid sphinx-autobuild furo # for building the docs
|