Skip to content

Commit

Permalink
Update envrc file
Browse files Browse the repository at this point in the history
  • Loading branch information
odedlaz committed Apr 12, 2017
1 parent 0661d1e commit 7367f92
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
layout python python2
if [ ! -f ".direnv/direnv.lock" ]; then
python_version=python2
lock_file="direnv.$python_version.lock"

layout python $python_version

if [ ! -f ".direnv/$lock_file" ]; then
date +%FT%TZ > ".direnv/$lock_file"

for req in requirements requirements-test; do
if [ -f $req.txt ]; then
echo "direnv: installing project $req"
pip install -r $req.txt 1> /dev/null
pip install -r $req.txt
fi
done

for package in ipython tox; do
for package in ipython pytest tox; do
echo "direnv: installing $package"
pip install --upgrade $package 1> /dev/null
pip install --upgrade $package
done

date +%FT%TZ > .direnv/direnv.lock
fi

0 comments on commit 7367f92

Please sign in to comment.