forked from mozilla/eideticker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·44 lines (33 loc) · 1.28 KB
/
Copy pathbootstrap.sh
File metadata and controls
executable file
·44 lines (33 loc) · 1.28 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
BASEDIR=$PWD
if [ ! $VENV ]; then
VENV="."
virtualenv --system-site-packages $VENV
fi
for PROG in virtualenv g++ avconv; do
which $PROG > /dev/null
if [ $? != 0 ]; then
echo "Required dep $PROG not found. Please install ('sudo apt-get install -y python-virtualenv g++ libav-tools' on Ubuntu gets them all)"
exit 1
fi
done
if [ ! -e /usr/include/python2.7/Python.h ]; then
echo "Please install Python 2.7 development files ('sudo apt-get install -y python2.7-dev' on Ubuntu)"
exit 1
fi
set -e
# Check out git submodules
git submodule init
git submodule update
# Build up videocapture utility (FIXME: should be part of the egg building process)
make -C src/videocapture/videocapture/decklink
# Set a long timeout for pip, especially for travis testing
export PIP_DEFAULT_TIMEOUT=120
# Upgrade pip to latest (so we can use --allow-external on all platforms)
$VENV/bin/pip install --upgrade pip
# Install local deps
$VENV/bin/pip install --allow-external which --allow-unverified which -e src/eideticker
$VENV/bin/pip install -e src/videocapture