mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 10:28:10 +01:00
Add check for minimum sqlite version.
This commit is contained in:
@@ -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
|
||||
|
||||
15
doc/notes.md
15
doc/notes.md
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user