-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8cc1bad
commit 2236f63
Showing
8 changed files
with
135 additions
and
22 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
pushd .. | ||
ABS_PATH=$(pwd) | ||
popd | ||
|
||
# Assume Ubuntu: install a recent version of clang and libomp | ||
echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list | ||
echo "deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main" | sudo tee -a /etc/apt/sources.list.d/llvm.list | ||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | ||
sudo apt update | ||
sudo apt install clang-8 libomp-8-dev | ||
|
||
# create conda env | ||
conda create -n $VIRTUALENV -q --yes python=$VERSION_PYTHON pip cython | ||
source activate $VIRTUALENV | ||
|
||
pushd .. | ||
|
||
# build & install blis | ||
mkdir BLIS_install | ||
git clone https://github.com/flame/blis.git | ||
pushd blis | ||
./configure --prefix=$ABS_PATH/BLIS_install --enable-cblas --enable-threading=openmp CC=$BLIS_CC auto | ||
make -j4 | ||
make install | ||
popd | ||
|
||
# build & install numpy | ||
git clone https://github.com/numpy/numpy.git | ||
pushd numpy | ||
echo "[blis] | ||
libraries = blis | ||
library_dirs = $ABS_PATH/BLIS_install/lib | ||
include_dirs = $ABS_PATH/BLIS_install/include/blis | ||
runtime_library_dirs = $ABS_PATH/BLIS_install/lib" > site.cfg | ||
python setup.py build_ext -i | ||
pip install -e . | ||
popd | ||
|
||
popd | ||
|
||
python -m pip install -q -r dev-requirements.txt | ||
CFLAGS=-I$ABS_PATH/BLIS_install/include/blis LDFLAGS=-L$ABS_PATH/BLIS_install/lib \ | ||
bash ./continuous_integration/build_test_ext.sh | ||
|
||
python --version | ||
python -c "import numpy; print('numpy %s' % numpy.__version__)" || echo "no numpy" | ||
python -c "import scipy; print('scipy %s' % scipy.__version__)" || echo "no scipy" | ||
|
||
python -m flit install --symlink |
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
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
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
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
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
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