Skip to content

Commit de87a19

Browse files
committed
A few cleanups
1 parent 4986bdb commit de87a19

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

.travis.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ matrix:
1717
- PY_CMD=python3
1818
- $PY_CMD -m pip install --user --upgrade pip wheel setuptools
1919
install: # Breathe does not yet support Sphinx 2
20-
- $PY_CMD -m pip install --user --upgrade sphinx<2 sphinx_rtd_theme breathe flake8 pep8-naming pytest
20+
- $PY_CMD -m pip install --user --upgrade "sphinx<2" sphinx_rtd_theme breathe flake8 pep8-naming pytest
2121
- curl -fsSL https://sourceforge.net/projects/doxygen/files/rel-1.8.15/doxygen-1.8.15.linux.bin.tar.gz/download | tar xz
2222
- export PATH="$PWD/doxygen-1.8.15/bin:$PATH"
2323
script:
@@ -54,6 +54,10 @@ matrix:
5454
env: PYTHON=3.5 CPP=14 GCC=6 DEBUG=1
5555
- services: docker
5656
env: PYTHON=3.6 CPP=17 GCC=7
57+
addons:
58+
apt:
59+
sources:
60+
- deadsnakes
5761
- os: linux
5862
env: PYTHON=3.6 CPP=17 CLANG=7
5963
addons:
@@ -164,22 +168,7 @@ install:
164168
else
165169
166170
if [ "$CLANG" = "7" ]; then
167-
if ! [ -d ~/.local/include/c++/v1 ]; then
168-
# Neither debian nor llvm provide a libc++ 5.1 deb; luckily it's fairly quick
169-
# to build, install (and cache), so do it ourselves:
170-
git clone --depth=1 https://github.com/llvm-mirror/llvm.git llvm-source
171-
git clone https://github.com/llvm-mirror/libcxx.git llvm-source/projects/libcxx -b release_70
172-
git clone https://github.com/llvm-mirror/libcxxabi.git llvm-source/projects/libcxxabi -b release_70
173-
mkdir llvm-build && cd llvm-build
174-
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/.local ../llvm-source
175-
make -j2 install-cxxabi install-cxx
176-
cp -a include/c++/v1/*cxxabi*.h ~/.local/include/c++/v1
177-
cd ..
178-
fi
179-
export CXXFLAGS="-isystem $HOME/.local/include/c++/v1 -stdlib=libc++"
180-
export LDFLAGS="-L$HOME/.local/lib -fuse-ld=lld-$CLANG"
181-
export LD_LIBRARY_PATH="$HOME/.local/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
182-
if [ "$CPP" = "-std=c++17" ]; then CPP="-std=c++1z"; fi
171+
export CXXFLAGS="-stdlib=libc++"
183172
fi
184173
185174
export NPY_NUM_BUILD_JOBS=2

0 commit comments

Comments
 (0)