Skip to content

Commit

Permalink
pip support
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code committed May 2, 2020
1 parent e4eddfe commit 7e1bbaf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ Connect:
```
xxh yourhost +if
```

## Preinstall Python packages
Add python packages to `pip-requirements.txt` and they will be in `$XXH_HOME/.local`.
This is compatible with [xxh-shell-xonsh](https://github.com/xxh/xxh-shell-xonsh) and [xxh-plugin-prerun-python](https://github.com/xxh/xxh-plugin-prerun-python).
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ do
esac
done

rm -rf $build_dir
mkdir -p $build_dir
cd $CDIR
rm -rf $build_dir && mkdir -p $build_dir

for f in *prerun.sh
for f in *prerun.sh home
do
cp $CDIR/$f $build_dir/
cp -r $CDIR/$f $build_dir/
done

cp -r $CDIR/home $build_dir/
PYTHONUSERBASE=$build_dir/home/.local pip install --user -I -r pip-requirements.txt
3 changes: 3 additions & 0 deletions pip-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#asciinema
#lolcat
#pandas
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xxh-xxh

0 comments on commit 7e1bbaf

Please sign in to comment.