Skip to content

Commit

Permalink
Add make conda-env
Browse files Browse the repository at this point in the history
  • Loading branch information
f-dangel committed Jan 9, 2020
1 parent 42ab520 commit f2a9806
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .conda_env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: backpack
channels:
- pytorch
- defaults
dependencies:
- cudatoolkit=9.2=0
- pip=19.3.1
- python=3.7.6
- pytorch=1.3.1=py3.7_cuda9.2.148_cudnn7.6.3_0
- torchvision=0.4.2=py37_cu92
- pip:
- -r requirements.txt
- -r requirements-dev.txt
- -e .
9 changes: 8 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.PHONY: black black-check flake8
.PHONY: install install-dev install-devtools install-test install-lint
.PHONY: test
.PHONY: conda-env

.DEFAULT: help
help:
Expand All @@ -21,7 +22,8 @@ help:
@echo " Install only the linter tools (included in install-dev)"
@echo "install-test"
@echo " Install only the testing tools (included in install-dev)"

@echo "conda-env"
@echo " Create conda environment 'backpack' with dev setup"
###
# Test coverage
test:
Expand Down Expand Up @@ -69,3 +71,8 @@ install-dev: install-devtools
@pip install -e .
@echo "Install pre-commit hooks..."
@pre-commit install

###
# Conda environment
conda-env:
@conda env create --file .conda_env.yml

0 comments on commit f2a9806

Please sign in to comment.