Skip to content

Commit

Permalink
Update linux-conda-CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowuhu committed Mar 13, 2024
1 parent b716520 commit 9beb2c3
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .azure-pipelines/linux-conda-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,13 @@ jobs:
sudo install -d -m 0777 /home/vsts/.conda/envs
displayName: Fix Conda permissions
- script: conda create --yes --quiet --name skl2onnxEnvironment "numpy$(numpy.version)" "scipy$(scipy.version)" python=$(python.version)
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
addToPath: true
architecture: 'x64'
displayName: 'Use Python $(python.version)'
# - script: conda create --yes --quiet --name skl2onnxEnvironment "numpy$(numpy.version)" "scipy$(scipy.version)" python=$(python.version)
# - script: conda create --yes --quiet --name 'py$(python.version)' python=$(python.version)
displayName: Create Anaconda environment

Expand All @@ -236,10 +242,13 @@ jobs:
displayName: 'Install packages'
- script: |
test '$(python.version)' == '3.7' && apt-get install protobuf-compiler libprotoc-dev
conda config --set always_yes yes --set changeps1 no
conda install -c conda-forge "numpy$(numpy.version)"
conda install protobuf
# test '$(python.version)' == '3.7' && apt-get install protobuf-compiler libprotoc-dev
# conda config --set always_yes yes --set changeps1 no
# conda install -c conda-forge "numpy$(numpy.version)"
# conda install protobuf
pip install "numpy$(numpy.version)"
pip install "scipy$(scipy.version)"
pip install protobuf
python -m pip install --upgrade pip
displayName: 'Install environment'

Expand Down

0 comments on commit 9beb2c3

Please sign in to comment.