[CI] Fix hanging Python setup in Windows CI (#7186)

This commit is contained in:
Philip Hyunsu Cho 2021-08-24 22:03:51 -07:00 committed by GitHub
parent ee8d1f5ed8
commit d04312b9c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 9 deletions

View File

@ -127,7 +127,7 @@ def TestWin64() {
bat "build\\testxgboost.exe" bat "build\\testxgboost.exe"
echo "Installing Python dependencies..." echo "Installing Python dependencies..."
def env_name = 'win64_' + UUID.randomUUID().toString().replaceAll('-', '') def env_name = 'win64_' + UUID.randomUUID().toString().replaceAll('-', '')
bat "conda env create -n ${env_name} --file=tests/ci_build/conda_env/win64_test.yml" bat "conda activate && mamba env create -n ${env_name} --file=tests/ci_build/conda_env/win64_test.yml"
echo "Installing Python wheel..." echo "Installing Python wheel..."
bat """ bat """
conda activate ${env_name} && for /R %%i in (python-package\\dist\\*.whl) DO python -m pip install "%%i" conda activate ${env_name} && for /R %%i in (python-package\\dist\\*.whl) DO python -m pip install "%%i"

View File

@ -2,7 +2,7 @@ name: win64_env
channels: channels:
- conda-forge - conda-forge
dependencies: dependencies:
- python - python=3.8
- wheel - wheel
- numpy - numpy
- scipy - scipy
@ -16,6 +16,5 @@ dependencies:
- jsonschema - jsonschema
- hypothesis - hypothesis
- jsonschema - jsonschema
- python-graphviz
- pip - pip
- pip:
- graphviz

View File

@ -2,7 +2,7 @@ name: win64_env
channels: channels:
- conda-forge - conda-forge
dependencies: dependencies:
- python=3.7 - python=3.8
- numpy - numpy
- scipy - scipy
- matplotlib - matplotlib
@ -12,8 +12,7 @@ dependencies:
- boto3 - boto3
- hypothesis - hypothesis
- jsonschema - jsonschema
- cupy
- python-graphviz
- modin-ray
- pip - pip
- pip:
- cupy-cuda101
- modin[all]
- graphviz