Skip to content

Commit

Permalink
update path
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Apr 25, 2019
1 parent 9a358b4 commit 9bd0a19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/appveyor/install.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Powershell Install script

# Setup some environment variable
$env:Path += ";$env:PYTHON;$env:PYTHON\\Scripts"
$env:Path = "$env:PYTHON;$env:PYTHON\\Scripts;$env:Path"
$env:PIPI = "pip install $env:EXTRA_PIP_FLAGS"

# Print and check this environment variable
Expand All @@ -10,8 +10,8 @@ Write-Host $env:PIPI
# Check that we have the expected version and architecture for Python
Invoke-Expression "python --version"

$env:PYTHON_ARCH = python -c "import struct; print(struct.calcsize('P') * 8)"
$env:PYTHON_VERSION = python -c "import platform;print(platform.python_version())"
$env:PYTHON_ARCH = (Invoke-Expression "python -c 'import struct; print(struct.calcsize("P") * 8)'") | Out-String
$env:PYTHON_VERSION = (Invoke-Expression "python -c 'import platform;print(platform.python_version())'") | Out-String

Write-Host "Python version: " + $env:PYTHON_VERSION
Write-Host "Python architecture: " + $env:PYTHON_ARCH
Expand Down

0 comments on commit 9bd0a19

Please sign in to comment.