File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 34
34
# Install rust compiler
35
35
echo " Installing rust compiler"
36
36
curl --proto ' =https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.76
37
- . $HOME /.cargo/env
38
- cargo install cbindgen
37
+ CARGO_BIN= " $HOME /.cargo/bin/cargo " # also works for Windows. On Windows this equals to %USERPROFILE%\.cargo\bin\cargo
38
+ $CARGO_BIN install cbindgen
39
39
# Setup Poetry
40
40
echo " Installing poetry"
41
41
curl -sSL https://install.python-poetry.org | python3 - --version " 1.7.1"
42
42
if [[ " $OSTYPE " == " msys" * ]]; then # Windows
43
43
POETRY_BIN=" $APPDATA /Python/Scripts/poetry"
44
44
else
45
- POETRY_BIN=` echo ~ /.local/bin/poetry` # expand tilde
45
+ POETRY_BIN=" $HOME /.local/bin/poetry"
46
46
fi
47
47
$POETRY_BIN self add ' poetry-dynamic-versioning[plugin]'
48
48
echo " Done installing dependencies"
You can’t perform that action at this time.
0 commit comments