Trying to substitute the version number in the conda environment file

This commit is contained in:
Jeremy Wright
2021-07-09 09:49:05 -04:00
parent 19ea4e4e9f
commit 8bbc52b076

View File

@ -44,7 +44,8 @@ init:
install:
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- sed -i 's/python>=3.6/python=$PYTHON_VERSION/g' environment.yml
- pwsh: ((Get-Content -path environment.yml -Raw) -replace 'python>=3.6',"python=$PYTHON_VERSION") | Set-Content -Path environment.yml
- sh: sed -i 's/python>=3.6/python=$PYTHON_VERSION/g' environment.yml
- conda env create -f environment.yml
- activate cadquery
#- cmd: conda install -c conda-forge -c defaults -c cadquery python=%PYTHON_VERSION%