Skip to content

Commit

Permalink
checkout-deps: Fix AMBuild install for fresh installs on Windows with…
Browse files Browse the repository at this point in the history
… newer Python versions
  • Loading branch information
psychonic committed Jul 7, 2024
1 parent ae78914 commit b18c8cb
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tools/checkout-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ do
done

if [ $want_mock_sdk -eq 1 ]; then
name=hl2sdk-mock
branch=master
repo="https://github.com/alliedmodders/hl2sdk-mock"
origin=
checkout
name=hl2sdk-mock
branch=master
repo="https://github.com/alliedmodders/hl2sdk-mock"
origin=
checkout
fi

python_cmd=`command -v python3`
Expand Down Expand Up @@ -210,7 +210,11 @@ if [ $? -eq 1 ]; then
name=ambuild
checkout

if [ $iswin -eq 1 ] || [ $ismac -eq 1 ]; then
if [ $iswin -eq 1 ]; then
# Without first doing this explicitly, ambuild install fails on newer Python versions on Windows
$python_cmd -m pip install wheel
$python_cmd -m pip install ./ambuild
elif [ $ismac -eq 1 ]; then
$python_cmd -m pip install ./ambuild
else
echo "Installing AMBuild at the user level. Location can be: ~/.local/bin"
Expand Down

0 comments on commit b18c8cb

Please sign in to comment.