Skip to content

Instantly share code, notes, and snippets.

@gawel
Last active Aug 29, 2015
Embed
What would you like to do?
s3ql-*
pyenv
#!/bin/bash
set -e
[ "`whoami`" = "root" ] && apt-get install libfuse-dev attr-dev sqlite3 libsqlite3-dev liblzma-dev make libssl-dev libbz2-dev pkg-config
PYTHON_VERSION=3.4.3
S3QL_VERSION=2.13
SQLITE3_VERSION=$(sqlite3 -version| cut -d' ' -f1)
APWS_URL=https://github.com/rogerbinns/apsw/archive/$SQLITE3_VERSION-r1.tar.gz
S3QL_URL=https://bitbucket.org/nikratio/s3ql/downloads/s3ql-$S3QL_VERSION.tar.bz2
export MAKE_OPTS=-j4
! [ -d pyenv ] && git clone git@github.com:yyuu/pyenv.git
export PYENV_ROOT=$PWD/pyenv
PIP=$PYENV_ROOT/versions/$PYTHON_VERSION/bin/pip
! [ -x $PIP ] && $PYENV_ROOT/bin/pyenv install -v $PYTHON_VERSION
$PIP install attr
$PIP install llfuse
$PIP install defusedxml
$PIP install pycrypto
$PIP install dugong
$PIP install $APWS_URL
$PIP install $S3QL_URL
@zerodeux
Copy link

zerodeux commented Mar 18, 2015

Otherwise works like a charm, thx !

BTW, can build faster with "export MAKE_OPTS=-j4".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment