diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2016-04-05 23:12:13 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2016-04-05 23:12:13 +0200 |
commit | 9fe35026d89d2b99df4a772579babfffb7e0148a (patch) | |
tree | 6f2d479984940b8a7425963bc3a4d8f3edb4e861 /env-setup | |
parent | 889fc09ed62f98f1b30507efd5777ca1e05c5b6e (diff) |
Update the setup instructions and add a title.
Diffstat (limited to 'env-setup')
-rwxr-xr-x | env-setup | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/env-setup b/env-setup new file mode 100755 index 0000000..e4987f4 --- /dev/null +++ b/env-setup @@ -0,0 +1,18 @@ +#!/bin/sh + +# Set up the local scraperwiki python library +if [ ! -d testlib ] ; then + mkdir testlib + git clone https://github.com/petterreinholdtsen/scraperwiki-python.git \ + testlib/scraperwiki-python + (cd testlib/scraperwiki-python; git checkout -b localbranch) + (cd testlib/scraperwiki-python; git merge -m "Merge patches." origin/scraperwiki.swimport \ + origin/sqliteerror origin/verbose-sqlite) +fi + +# Install the rest +sudo apt-get install python-alembic python-beautifulsoup python-dateutil +if [ ! -h scrapersources/postliste-python-lib.py ] ; then + ln -s postliste-python-lib scrapersources/postliste-python-lib.py +fi +mkdir -p data |