-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·32 lines (28 loc) · 941 Bytes
/
setup.sh
File metadata and controls
executable file
·32 lines (28 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
if [[ "$OSTYPE" == "darwin"* ]]; then
brew install python3
elif [[ "$OSTYPE" == "linux-gnu" ]]; then
sudo apt-get install python-virtualenv
sudo apt-get install python3-pip
fi
pip3 install virtualenv
# Create the virtual env in a directory outside our github repo
cd ../
virtualenv -p python3 venv_hackthenorth
source venv_hackthenorth/bin/activate
# Install packages
cd hackthenorth/
pip3 install -r req.txt
# Install news paper packages prereqs
if [[ "$OSTYPE" == "linux-gnu" ]]; then
# ...
sudo apt-get install python-dev
sudo apt-get install libxml2-dev libxslt-dev
sudo apt-get install libjpeg-dev zlib1g-dev libpng12-dev
elif [[ "$OSTYPE" == "darwin"* ]]; then
# Mac OSX
brew install libxml2 libxslt
brew install libtiff libjpeg webp little-cms2
fi
pip3 install ipython
pip3 install newspaper3k
curl https://raw.githubusercontent.com/codelucas/newspaper/master/download_corpora.py | python3