Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: install-build-deps.sh

Issue 1808503002: Update distillability modeling scripts to predict long articles (Closed) Base URL: git@github.com:chromium/dom-distiller.git@ml-visible
Patch Set: update docs Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « heuristics/distillable/write_features_csv.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Installs required build dependencies (to buildtools/ and the local system). 6 # Installs required build dependencies (to buildtools/ and the local system).
7 7
8 CHROME_MIN_VERSION=32 8 CHROME_MIN_VERSION=32
9 9
10 ( 10 (
11 set -e 11 set -e
12 if [ "$(id -u)" != "0" ]; then 12 if [ "$(id -u)" != "0" ]; then
13 echo "Please run this as root." 13 echo "Please run this as root."
14 exit 1 14 exit 1
15 fi 15 fi
16 16
17 apt-get update 17 apt-get update
18 apt-get install \ 18 apt-get install \
19 ant \ 19 ant \
20 openjdk-7-jdk \ 20 openjdk-7-jdk \
21 protobuf-compiler \ 21 protobuf-compiler \
22 python \ 22 python \
23 python-setuptools \ 23 python-setuptools \
24 python-protobuf \ 24 python-protobuf \
25 unzip \ 25 unzip \
26 wget \ 26 wget \
27 xdotool \
27 xvfb 28 xvfb
28 29
29 if ! command -v google-chrome >/dev/null 2>&1; then 30 if ! command -v google-chrome >/dev/null 2>&1; then
30 wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - 31 wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
31 echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/so urces.list.d/google-chrome.list 32 echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/so urces.list.d/google-chrome.list
32 apt-get update 33 apt-get update
33 apt-get install google-chrome-stable 34 apt-get install google-chrome-stable
34 fi 35 fi
35 36
36 # Update chrome if it is too old, and keep the default channel. 37 # Update chrome if it is too old, and keep the default channel.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 chmod u+x $tools/chromedriver 69 chmod u+x $tools/chromedriver
69 70
70 wget https://pypi.python.org/packages/source/s/selenium/$tar 71 wget https://pypi.python.org/packages/source/s/selenium/$tar
71 tar -xf $tar 72 tar -xf $tar
72 cd $pkg 73 cd $pkg
73 74
74 python setup.py install 75 python setup.py install
75 76
76 rm -rf $tmp 77 rm -rf $tmp
77 ) 78 )
OLDNEW
« no previous file with comments | « heuristics/distillable/write_features_csv.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698