File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ if [ -f $HERE/env.sh ]; then
10
10
. $HERE /env.sh
11
11
fi
12
12
13
+ # Set a default bin directory.
14
+ PYMONGO_BIN_DIR=" ${PYMONGO_BIN_DIR:- $HOME / .local/ bin} "
15
+
13
16
# Helper function to pip install a dependency using a temporary python env.
14
17
function _pip_install() {
15
18
_HERE=$( dirname ${BASH_SOURCE:- $0 } )
@@ -41,10 +44,6 @@ if ! command -v just &>/dev/null; then
41
44
if [ " Windows_NT" = " ${OS:- } " ]; then
42
45
_TARGET=" --target x86_64-pc-windows-msvc"
43
46
fi
44
- if [ -z " ${PYMONGO_BIN_DIR:- } " ]; then
45
- echo " Please install just!"
46
- exit 1
47
- fi
48
47
_BIN_DIR=$PYMONGO_BIN_DIR
49
48
echo " Installing just..."
50
49
mkdir -p " $_BIN_DIR " 2> /dev/null || true
56
55
57
56
# Ensure uv is installed.
58
57
if ! command -v uv & > /dev/null; then
59
- if [ -z " ${PYMONGO_BIN_DIR:- } " ]; then
60
- echo " Please install uv!"
61
- exit 1
62
- fi
63
58
_BIN_DIR=$PYMONGO_BIN_DIR
64
59
echo " Installing uv..."
65
60
# On most systems we can install directly.
You can’t perform that action at this time.
0 commit comments