forked from openwpm/OpenWPM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·36 lines (26 loc) · 1.07 KB
/
install.sh
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
#!/bin/bash
# This script automates the creation and installation
# of the conda environmnet. It's useful for working
# in the docker file and on travis, but it's not
# necessary for individual users to use it.
# Developers are encourage to only run scripts
# that they fully understand, and may prefer to
# run aspects of this script manually to set-up
# openwpm.
# This script will remove an existing openwpm
# conda environment if it exists.
set -e
# Make conda available to shell script
eval "$(conda shell.bash hook)"
echo 'Creating / Overwriting openwpm conda environment.'
# `PYTHONNOUSERSITE` set so python ignores local user site libraries when building the env
# See: https://github.com/mozilla/OpenWPM/pull/682#issuecomment-645648939
PYTHONNOUSERSITE=True conda env create --force -q -f environment.yaml
echo 'Activating environment.'
conda activate openwpm
echo 'Installing firefox.'
./scripts/install-firefox.sh
echo 'Building extension.'
./scripts/build-extension.sh
echo 'Installation complete, activate your new environment by running:'
echo 'conda activate openwpm'