| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,6 @@ environment: | |||
| 9 | 9 | global: | |
| 10 | 10 | PYTHONUNBUFFERED: True | |
| 11 | 11 | PYTHONWARNINGS: 'ignore:::wheel.pep425tags:' | |
| 12 | - CONDA_BLD: C:\miniconda35 | ||
| 13 | 12 | ||
| 14 | 13 | matrix: | |
| 15 | 14 | - PYTHON_VERSION: 2.7 | |
@@ -22,15 +21,12 @@ init: | |||
| 22 | 21 | # Prepare Environment | |
| 23 | 22 | - mkdir C:\testdir | |
| 24 | 23 | ||
| 25 | - # Set environment variables depending based on build cfg | ||
| 26 | - - set CONDA_PY=%PYTHON_VERSION:.=% | ||
| 27 | - - set CONDA_BLD_ARCH=%PLATFORM:x=% | ||
| 28 | - - set PYTHON=C:\PYTHON%PYTHON_VERSION:.=% | ||
| 29 | - - if %PLATFORM%==x86 (set CONDA_BLD_ARCH=32) | ||
| 24 | + # Update Environment Variables based on matrix/platform | ||
| 25 | + - set PY_VER=%PYTHON_VERSION:.=% | ||
| 26 | + - set PYTHON=C:\PYTHON%PY_VER% | ||
| 30 | 27 | - if %PLATFORM%==x64 (set PYTHON=%PYTHON%-x64) | |
| 31 | - - if %PLATFORM%==x64 (set CONDA_BLD=%CONDA_BLD%-x64) | ||
| 32 | 28 | ||
| 33 | - # Prepend newly installed Python to the PATH of this build | ||
| 29 | + # Put desired Python version first in PATH | ||
| 34 | 30 | - set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% | |
| 35 | 31 | ||
| 36 | 32 | install: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,16 @@ | |||
| 1 | 1 | # Build `conda.recipe` only if this is a Pull_Request. Saves time for CI. | |
| 2 | 2 | ||
| 3 | + $env:CONDA_PY = "$env:PY_VER" | ||
| 4 | + # Use pre-installed miniconda. Note that location differs if 64bit | ||
| 5 | + $env:CONDA_BLD = "C:\miniconda35" | ||
| 6 | + | ||
| 7 | + if ($env:PLATFORM -eq "x86"){ | ||
| 8 | + $env:CONDA_BLD_ARCH=32 | ||
| 9 | + } else { | ||
| 10 | + $env:CONDA_BLD_ARCH=64 | ||
| 11 | + $env:CONDA_BLD = "$env:CONDA_BLD" + "-x64" | ||
| 12 | + } | ||
| 13 | + | ||
| 3 | 14 | if ($env:APPVEYOR_PULL_REQUEST_NUMBER) { | |
| 4 | 15 | # Update PATH, and keep a copy to restore at end of this PowerShell script | |
| 5 | 16 | $old_path = $env:path | |
| Back | FazBrowse Home | New Git URL |
0 commit comments