Add check for minimum sqlite version.

This commit is contained in:
tecnovert
2025-05-05 00:29:03 +02:00
parent aa898a9601
commit 7df2f1b290
6 changed files with 131 additions and 77 deletions

View File

@@ -175,10 +175,12 @@ Close the terminal and open a new one to update the python symlinks.
### Basicswap
If installing on an older distro such as Debian 11 you may need to use a newer Python/SQLite version, see ["Use a Different Python Version" in notes.md](notes.md#Use-a-Different-Python-Version)
export SWAP_DATADIR=$HOME/coinswaps
python3 -m venv "$SWAP_DATADIR/venv"
. $SWAP_DATADIR/venv/bin/activate && python -V
. $SWAP_DATADIR/venv/bin/activate && python -V
cd $SWAP_DATADIR
git clone https://github.com/basicswap/basicswap.git
cd $SWAP_DATADIR/basicswap

View File

@@ -103,6 +103,21 @@ Test:
basicswap-prepare.exe --help
## Use a Different Python Version
[uv](https://github.com/astral-sh/uv) can create a virtual environment for a different version of Python (and consequently SQLite).
Run:
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.local/bin/env
uv venv -p 3.10 "$SWAP_DATADIR/venv" --seed
Instead of:
python3 -m venv "$SWAP_DATADIR/venv"
## Private Offers
To send a private offer: