Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 043ac45

Browse files
committed
Fixing bugs test_conda_install run
1 parent 676246f commit 043ac45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildscripts/azure/template-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ jobs:
3939
4040
- script: |
4141
call C:\\Miniconda\\Scripts\activate.bat
42-
python buildscripts\\run_examples.py --python=%PYTHON_VER% --channels="-c anaconda -c conda-forge"
42+
python buildscripts\\test_conda_install.py --python=%PYTHON_VER% --channels="-c anaconda -c conda-forge"
4343
displayName: 'Test SDC installation from conda'
4444
continueOnError: ${{ parameters.allowFailure }}

buildscripts/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def install_conda_package(self, packages_list, channels=None):
100100

101101
self.log_info(f'Install {" ".join(packages_list)} to {self.env_name} conda environment')
102102
install_args = ['-n', self.env_name]
103-
replace_channels = self.channel_list if channels is None else channels.split()
103+
replace_channels = channels.split() if channels else self.channel_list
104104
install_args += replace_channels + ['--override-channels', '-q', '-y'] + packages_list
105105
self.log_info(self.__run_conda_command(Conda_Commands.INSTALL, install_args))
106106

0 commit comments

Comments
 (0)