Created
July 6, 2015 18:38
-
-
Save tdhopper/69ddf95f43f4364beec4 to your computer and use it in GitHub Desktop.
Build Data Microscopes projects on OS X with Conda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Run `. build-all.sh conda-env-name` | |
conda create -n $1 cmake eigen3 anaconda cython | |
bash build-dist.sh $1 | |
bash build-common.sh $1 | |
bash build-mm.sh $1 | |
bash build-irm.sh $1 | |
bash build-lda.sh $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -x | |
[ -d common ] && rm -rf common | |
git clone git@github.com:datamicroscopes/common.git | |
pushd common | |
source activate $1 | |
conda install cython | |
export DYLD_FALLBACK_LIBRARY_PATH=${HOME}/anaconda/envs/$1/lib | |
pip install gitpython==0.3.6 | |
make debug | |
pushd debug | |
make | |
make test | |
make install | |
popd | |
LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" pip install . | |
pushd test | |
nosetests -v | |
popd | |
popd | |
source deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
rm -rf distributions | |
git clone git@github.com:datamicroscopes/distributions.git | |
pushd distributions | |
git reset --hard HEAD | |
make clean | |
conda remove -n $1 --all | |
conda create -n $1 cmake eigen3 anaconda | |
pip install pyflakes | |
source activate $1 | |
make protobuf | |
VERBOSE=1 DISTRIBUTIONS_USE_PROTOBUF=1 CMAKE_INSTALL_PREFIX=${HOME}/anaconda/envs/$1 CXXFLAGS="-I/usr/local/include -L/usr/local/lib" LDFLAGS="-L/usr/local/lib" CFLAGS="-I${HOME}/anaconda/envs/$1/include/ -I/usr/local/include" make install | |
source deactivate | |
popd | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
[ -d irm ] && rm -rf irm | |
git clone git@github.com:datamicroscopes/irm.git | |
pushd irm | |
source activate $1 | |
conda install cython | |
export DYLD_FALLBACK_LIBRARY_PATH=${HOME}/anaconda/envs/$1/lib | |
pip install gitpython==0.3.6 | |
make debug | |
pushd debug | |
make | |
make test | |
make install | |
popd | |
LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" pip install . | |
pushd test | |
nosetests -v -a '!slow' | |
popd | |
popd | |
source deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
[ -d kernels ] && rm -rf kernels | |
git clone git@github.com:datamicroscopes/kernels.git | |
pushd kernels | |
source activate $1 | |
conda install cython | |
export DYLD_FALLBACK_LIBRARY_PATH=${HOME}/anaconda/envs/$1/lib | |
pip install gitpython==0.3.6 | |
make debug | |
pushd debug | |
make | |
make install | |
popd | |
LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" pip install . | |
pushd test | |
nosetests -v | |
popd | |
popd | |
source deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
[ -d lda ] && rm -rf lda | |
git clone git@github.com:datamicroscopes/lda.git | |
pushd lda | |
source activate $1 | |
conda install cython | |
export DYLD_FALLBACK_LIBRARY_PATH=${HOME}/anaconda/envs/$1/lib | |
pip install gitpython==0.3.6 | |
make debug | |
pushd debug | |
make | |
make test | |
make install | |
popd | |
LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" pip install . | |
pushd test | |
nosetests -v -a '!slow' | |
popd | |
popd | |
source deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -x | |
[ -d mixturemodel ] && rm -rf mixturemodel | |
git clone git@github.com:datamicroscopes/mixturemodel.git | |
pushd mixturemodel | |
source activate $1 | |
conda install cython | |
export DYLD_FALLBACK_LIBRARY_PATH=${HOME}/anaconda/envs/$1/lib | |
pip install gitpython==0.3.6 | |
make debug | |
pushd debug | |
make | |
make test | |
make install | |
popd | |
LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" pip install . | |
pushd test | |
nosetests -v -a '!slow' | |
popd | |
popd | |
source deactivate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment