Skip to content

Instantly share code, notes, and snippets.

@gawel
Last active August 29, 2015 14:17
Show Gist options
  • Save gawel/b349491009c58d3df0f1 to your computer and use it in GitHub Desktop.
Save gawel/b349491009c58d3df0f1 to your computer and use it in GitHub Desktop.
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 [email protected]: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

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