Skip to content

Instantly share code, notes, and snippets.

@geektoni
Last active May 29, 2020 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geektoni/6b60fe1ed57f12d419ad271f6c824238 to your computer and use it in GitHub Desktop.
Save geektoni/6b60fe1ed57f12d419ad271f6c824238 to your computer and use it in GitHub Desktop.
#!/bin/bash
MINICONDADIR=/home/gdetoni/Applications/miniconda3
sudo apt install libhdf5-dev
conda create --name test_gsoc python=3.5 -y
conda activate test_gsoc
conda install numpy
cmake \
-DCMAKE_INSTALL_PREFIX=/home/gdetoni/Github/shogun_install \
-DINTERFACE_PYTHON=ON \
-DBUILD_META_EXAMPLES=OFF \
-DENABLE_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_INCLUDE_DIR=$MINICONDADIR/envs/test_gsoc/include/python3.5m \
-DPYTHON_LIBRARY=$MINICONDADIR/envs/test_gsoc/lib/libpython3.5m.so \
-DPYTHON_EXECUTABLE:FILEPATH=$MINICONDADIR/envs/test_gsoc/bin/python \
-DPYTHON_PACKAGES_PATH=$MINICONDADIR/envs/test_gsoc/lib/python3.5 \
../
make install
export LD_LIBRARY_PATH=/home/gdetoni/Github/shogun_install/lib/:$LD_LIBRARY_PATH
export PYTHONPATH=/home/gdetoni/Applications/miniconda3/envs/test_gsoc/lib/python3.5/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment