Skip to content

Commit 8bbc52b

Browse files
committed
Trying to substitute the version number in the conda environment file
1 parent 19ea4e4 commit 8bbc52b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ init:
4444
install:
4545
- conda config --set always_yes yes --set changeps1 no
4646
- conda update -q conda
47-
- sed -i 's/python>=3.6/python=$PYTHON_VERSION/g' environment.yml
47+
- pwsh: ((Get-Content -path environment.yml -Raw) -replace 'python>=3.6',"python=$PYTHON_VERSION") | Set-Content -Path environment.yml
48+
- sh: sed -i 's/python>=3.6/python=$PYTHON_VERSION/g' environment.yml
4849
- conda env create -f environment.yml
4950
- activate cadquery
5051
#- cmd: conda install -c conda-forge -c defaults -c cadquery python=%PYTHON_VERSION%

0 commit comments

Comments
 (0)