Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion basicswap-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export MACOS="${MACOS}"

## Create venv
if [[ $(type -p uv) ]]; then
uv venv -p 3.12 "${SWAP_DATADIR}/venv" --seed
uv venv -p ${py_maj}.${py_min} "${SWAP_DATADIR}/venv" --seed
else
python3 -m venv "${SWAP_DATADIR}/venv"
fi
Expand Down
4 changes: 4 additions & 0 deletions bsx/shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export TOR_DNS_PORT=15353
export BSX_LOCAL_TOR=true # sets host to 127.0.0.1
export BSX_ALLOW_ENV_OVERRIDE=true # required to change the ports

# Python vwrsion
export py_maj=3
export py_min=13

# Network
[[ "${1}${2}${3}${4}${5}" == *"regtest"* ]] && export regtest="--regtest"

Expand Down
11 changes: 11 additions & 0 deletions bsx/update.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
source bsx/shared.sh

# Move scripts
rm -r $HOME/.local/bin/bsx $HOME/.local/bin/basicswap-*
Expand All @@ -8,6 +9,16 @@ echo "Updating BasicSwapDEX" && sleep 1
# Delete dangling build folder. Same as --no-cache for docker
rm -rf $SWAP_DATADIR/basicswap/build

# Check and update UV python version
if type -p uv; then
cd $SWAP_DATADIR
if uv run python -c "import sys; exit(0 if sys.version_info <= (${py_maj},${py_min}) else 1)"; then
rm -rf venv
green "Updating uv Python to ${py_maj}.${py_min}"
uv venv -p ${py_maj}.${py_min} "${SWAP_DATADIR}/venv" --seed
fi
fi

# BasicSwap, coincurve, and dependencies
# Switch to new repo: basicswap/basicswap
cd $SWAP_DATADIR/basicswap
Expand Down
Loading