Skip to content

Commit

Permalink
Change recipe-installation instructions
Browse files Browse the repository at this point in the history
Per problems with `pip install -r` when installing scipy and others.

c.f. pypa/pip#25
  • Loading branch information
jsvine committed Apr 3, 2014
1 parent af3bfcb commit 378a1dd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ These are based on personal preferences; all relevant caveats apply.

```sh
mkvirtualenv [whatever_name_you_want]
pip install -r [file]
./install-recipe.sh recipes/[RECIPE].txt
```

## Current Recipes
Expand Down
14 changes: 14 additions & 0 deletions install-recipe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# Get requirements file and any extra args for pip
REQ_FILE=$1
shift
PIP_ARGS=$@

# Loop through requirements file
while read LINE; do
NONCOMMENT=$(echo -n $LINE | sed -e "s/\s*#.*$//")
if [ -z "$NONCOMMENT" ]; then continue; fi
pip install $NONCOMMENT $PIP_ARGS || break
done < $REQ_FILE

exit

0 comments on commit 378a1dd

Please sign in to comment.