Use direnv to setup virtualenv

This commit is contained in:
Bill ONeill 2017-08-01 10:22:22 -07:00 committed by Nemo
parent 7e82b64fc5
commit d9185b5eec
3 changed files with 8 additions and 2 deletions

3
.envrc Normal file
View File

@ -0,0 +1,3 @@
layout python python2
pip install --quiet -r requirements.txt
watch_file requirements.txt

3
.gitignore vendored
View File

@ -1 +1,2 @@
html/
html/
.direnv

View File

@ -10,4 +10,6 @@ Review and run the `bootstrap.sh` script to generate the EPUB.
**Note**: Currently relies on python2 and pip to install dependencies
and does not setup a virtualenv. Please review the script and edit
as per your needs.
as per your needs. If you have [direnv](https://direnv.net/)
installed, it will set up the virtualenv for you after you run
`direnv allow`.