Skip to content

Commit

Permalink
Add some additional conda dependencies to build wheels (microsoft#519)
Browse files Browse the repository at this point in the history
Fixes some uncached rebuild issues that are holding up some other PRs.
  • Loading branch information
bpkroth authored Sep 28, 2023
1 parent 6629e88 commit 13c62ca
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-dist-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ if ($LASTEXITCODE -ne 0) {
}
# Add a few extras we have to pull in from conda-forge.
# See Also: mlos-windows.yml
conda install -y -v -n mlos-dist-test swig libpq
# FIXME: conda on Windows doesn't appear to respect ">=0.9.0" as a version constraint despite various quoting tweaks.
conda install -y -v -n mlos-dist-test -c conda-forge 'pyrfr=0.9'
if ($LASTEXITCODE -ne 0) {
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ build/dist-test-env.$(PYTHON_VERSION).build-stamp: mlos_core/dist/tmp/mlos_core-
# Create a clean test environment for checking the wheel files.
$(MAKE) dist-test-env-clean
conda create -y ${CONDA_INFO_LEVEL} -n mlos-dist-test-$(PYTHON_VERSION) python=$(PYTHON_VERS_REQ)
# Install some additional dependencies necessary for clean building some of the wheels.
conda install -y ${CONDA_INFO_LEVEL} -n mlos-dist-test-$(PYTHON_VERSION) swig libpq
# Test a clean install of the mlos_core wheel.
conda run -n mlos-dist-test-$(PYTHON_VERSION) pip install "mlos_core/dist/tmp/mlos_core-latest-py3-none-any.whl[full-tests]"
# Test a clean install of the mlos_bench wheel.
Expand Down
2 changes: 2 additions & 0 deletions conda-envs/mlos-3.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ dependencies:
- nb_conda_kernels
- matplotlib
- seaborn
- swig
- libpq
- python=3.10
# See comments in mlos.yml.
#- gcc_linux-64
Expand Down
1 change: 1 addition & 0 deletions conda-envs/mlos-3.11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- matplotlib
- seaborn
- swig
- libpq
- python=3.11
# See comments in mlos.yml.
#- gcc_linux-64
Expand Down
2 changes: 2 additions & 0 deletions conda-envs/mlos-3.8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ dependencies:
- nb_conda_kernels
- matplotlib
- seaborn
- swig
- libpq
- python=3.8
# See comments in mlos.yml.
#- gcc_linux-64
Expand Down
2 changes: 2 additions & 0 deletions conda-envs/mlos-3.9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ dependencies:
- nb_conda_kernels
- matplotlib
- seaborn
- swig
- libpq
- python=3.9
# See comments in mlos.yml.
#- gcc_linux-64
Expand Down
1 change: 1 addition & 0 deletions conda-envs/mlos-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
- matplotlib
- seaborn
- swig
- libpq
- python
# Install an SMAC requirement pre-compiled from conda-forge.
# This also requires a more recent vs2015_runtime from conda-forge.
Expand Down
1 change: 1 addition & 0 deletions conda-envs/mlos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- matplotlib
- seaborn
- swig
- libpq
- python
- pip:
- autopep8>=1.7.0
Expand Down

0 comments on commit 13c62ca

Please sign in to comment.