Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Aug 4, 2015
1 parent 2ffdb86 commit 3e3c183
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ TOR_DEB_REPO="http://deb.torproject.org/torproject.org"
CLOUDFRONT="no"
INSTALL_PT="yes"
PYTHONPATH=$(python -c "import sys; print ':'.join(x for x in sys.path if x)")
PYTHON_PREFIX="/usr/local"

# These are the minimum ubuntu and debian version required to use the debian
# package.
Expand Down Expand Up @@ -249,7 +250,7 @@ install_pluggable_transports() {
install_pluggable_transport_deps
(
set -x
PYTHONPATH=$PYTHONPATH $sh_c 'pip install obfsproxy fteproxy'
$sh_c "PYTHONPATH=$(PYTHONPATH) pip install --install-option=\"--prefix=$PYTHON_PREFIX\" obfsproxy fteproxy"
)
install_obfs4proxy
install_meek
Expand All @@ -269,7 +270,7 @@ case "$lsb_dist" in
$sh_c "${yum} -y groupinstall \"Development tools\""
$sh_c "${yum} -y install zlib-devel bzip2-devel openssl-devel sqlite-devel libpcap-devel libffi-devel libevent-devel GeoIP-devel tor python-devel libdnet-devel gcc-c++"
install_pip
PYTHONPATH=$PYTHONPATH $sh_c 'pip install ooniprobe'
$sh_c "PYTHONPATH=$(PYTHONPATH) pip install --install-option=\"--prefix=$PYTHON_PREFIX\" ooniprobe"
)

install_pluggable_transports
Expand Down Expand Up @@ -322,7 +323,7 @@ case "$lsb_dist" in
(
set -x
$sh_c 'apt-get install -y -q curl git-core python python-dev python-setuptools build-essential libdumbnet1 python-dumbnet python-libpcap tor tor-geoipdb libgeoip-dev libpcap0.8-dev libssl-dev libffi-dev libdumbnet-dev'
PYTHONPATH=$PYTHONPATH $sh_c 'pip install ooniprobe'
$sh_c "PYTHONPATH=$(PYTHONPATH) pip install --install-option=\"--prefix=$PYTHON_PREFIX\" ooniprobe"
)
fi

Expand Down

0 comments on commit 3e3c183

Please sign in to comment.