File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ if [ -f $HERE/env.sh ]; then
10
10
. $HERE /env.sh
11
11
fi
12
12
13
- _BIN_DIR=${PYMONGO_BIN_DIR:- $(pwd)}
13
+ _BIN_DIR=${PYMONGO_BIN_DIR:- }
14
+
15
+ # Handle remote containers/VMS.
16
+ if [ -z " $BIN_DIR " ] && [ " $( uname -s) " = " Linux" ]; then
17
+ _BIN_DIR=/usr/local/bin
18
+ fi
14
19
15
20
# Helper function to pip install a dependency using a temporary python env.
16
21
function _pip_install() {
@@ -28,6 +33,10 @@ function _pip_install() {
28
33
29
34
# Ensure just is installed.
30
35
if ! command -v just 2> /dev/null; then
36
+ if [ -z " $BIN_DIR " ]; then
37
+ echo " Please install just!"
38
+ exit 1
39
+ fi
31
40
# On most systems we can install directly.
32
41
_TARGET=" "
33
42
if [ " Windows_NT" = " ${OS:- } " ]; then
43
52
44
53
# Install uv.
45
54
if ! command -v uv 2> /dev/null; then
55
+ if [ -z " $BIN_DIR " ]; then
56
+ echo " Please install uv!"
57
+ exit 1
58
+ fi
46
59
echo " Installing uv..."
47
60
# On most systems we can install directly.
48
61
curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=" $_BIN_DIR " INSTALLER_NO_MODIFY_PATH=1 sh || {
You can’t perform that action at this time.
0 commit comments