Skip to content

Commit

Permalink
Update windows script
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Sep 2, 2022
1 parent e367e94 commit 8fff87e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/install.ps1
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Installing Python dependencies
$dev = If ($env:GITHUB_JOB -eq 'Build') { '' } Else { '-dev' }
# Ensures installation tools are up to date.
python3 -m pip install wheel pip setuptools --upgrade
pip install -r "$PSScriptRoot/requirements$dev.txt"

# Alias python to python3 on windows
# Alias python3 to python on Windows
If ($IsWindows) {
$python = (Get-Command python).Source
$python3 = "$((Get-Item $python).Directory.FullName)/python3.exe"
New-Item -ItemType SymbolicLink -Path $python3 -Target $python -ErrorAction SilentlyContinue
}

# Installing Python dependencies
$dev = If ($env:GITHUB_JOB -eq 'Build') { '' } Else { '-dev' }
# Ensures installation tools are up to date.
python3 -m pip install wheel pip setuptools --upgrade
python3 -m pip install -r "$PSScriptRoot/requirements$dev.txt"

# Don't compile resources on the Build CI job as it'll do so in build script
If ($dev) {
& "$PSScriptRoot/compile_resources.ps1"
Expand Down

0 comments on commit 8fff87e

Please sign in to comment.