Skip to content

Commit

Permalink
dependencies for conda package testing (facebookresearch#208)
Browse files Browse the repository at this point in the history
Summary:
Now opencv and tensorboard are not official dependencies, make sure they are available for the conda tests. This is part of the followup to facebookresearch#198 (conda not installing nicely), specifically PRs facebookresearch#202 and facebookresearch#205 which removed them as deps.

Pull Request resolved: facebookresearch#208

Reviewed By: prigoyal

Differential Revision: D26736846

Pulled By: bottler

fbshipit-source-id: 0a0b8af1d05067d82f2cd946faa0faeec0be094d
  • Loading branch information
bottler authored and facebook-github-bot committed Mar 1, 2021
1 parent 3e85241 commit 859d8f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/packaging/vissl_conda/build_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ export BUILD_VERSION=$build_version

# We allow the vissl channel to get the apex package.
# We specify it with a full url to avoid a name clash with a local directory called vissl.
conda build -c https://conda.anaconda.org/vissl -c iopath -c conda-forge -c pytorch -c defaults --no-anaconda-upload --python "$PYTHON_VERSION" --output-folder "$packaging/out" "$packaging/vissl"
# Having defaults before conda-forge is so that the tensorboard used in the
# tests will work.
conda build -c https://conda.anaconda.org/vissl -c iopath -c pytorch -c defaults -c conda-forge --no-anaconda-upload --python "$PYTHON_VERSION" --output-folder "$packaging/out" "$packaging/vissl"
2 changes: 2 additions & 0 deletions dev/packaging/vissl_conda/vissl/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ test:
requires:
- ca-certificates
- cudatoolkit=10.1
- opencv
- tensorboard
commands:
- python -m unittest discover -v -s tests
- ./dev/run_quick_tests.sh
Expand Down

0 comments on commit 859d8f6

Please sign in to comment.