Skip to content

Commit

Permalink
Fix conda build (pytorch#1128)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#1128

Need to add Pyro as a dependency

Reviewed By: saitcakmak

Differential Revision: D35115132

fbshipit-source-id: 6c3e7dcd69422a865528fc4c8bd340c581ad3fcb
  • Loading branch information
dme65 authored and facebook-github-bot committed Mar 24, 2022
1 parent 9d0e613 commit c1a66c6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ requirements:
- setuptools<48 # setup_requires was deprecated in v48.0.0
- setuptools-scm
run:
- pytorch>=1.9
- gpytorch>=1.6
- pytorch >=1.9
- gpytorch >=1.6
- scipy
- pyro-ppl 1.8.0

test:
imports:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
conda config --set anaconda_upload no
conda install -y -c pytorch-nightly pytorch cpuonly
conda install -y scipy
conda install -y -c conda-forge pyro-ppl==1.8.0
pip install git+https://github.com/cornellius-gp/gpytorch.git
- name: Build and verify conda package
shell: bash -l {0}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
conda install -y -c pytorch pytorch cpuonly
conda install -y pip scipy pytest
conda install -y -c gpytorch gpytorch
conda install -y -c conda-forge pyro-ppl==1.8.0
pip install .[test]
- name: Unit tests
shell: bash -l {0}
Expand Down
2 changes: 2 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: botorch
channels:
- pytorch
- gpytorch
- conda-forge
dependencies:
- pytorch>=1.9
- gpytorch>=1.6
- scipy
- pyro-ppl=1.8.0
2 changes: 1 addition & 1 deletion scripts/build_and_verify_conda_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export BOTORCH_VERSION
cur_dir="$(pwd)"
build_dir="${cur_dir}/conda_build"
mkdir "${build_dir}"
conda build -c pytorch -c gpytorch --output-folder "${build_dir}" .
conda build -c pytorch -c gpytorch -c conda-forge --output-folder "${build_dir}" .

# name of package file (assuming first build)
path="${build_dir}/noarch/botorch-${BOTORCH_VERSION}-0.tar.bz2"
Expand Down
1 change: 1 addition & 0 deletions scripts/test_packaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ python setup.py sdist bdist_wheel
conda config --show
conda config --add channels pytorch
conda config --add channels gpytorch
conda config --add channels conda-forge
cd .conda || exit
./build_conda.sh

0 comments on commit c1a66c6

Please sign in to comment.