Skip to content

Commit

Permalink
Merge pull request #296 from NatLibFi/use-VW-version-8.7
Browse files Browse the repository at this point in the history
Use vw version 8.7
  • Loading branch information
juhoinkinen authored Aug 8, 2019
2 parents 252c87e + b52d5e7 commit 0fd6e74
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ addons:
- libboost-program-options-dev
- libboost-python-dev
- zlib1g-dev
- cmake
- libboost-system-dev
- libboost-thread-dev
- libboost-test-dev
cache: pip
before_install:
- export BOTO_CONFIG=/dev/null
Expand All @@ -27,8 +31,8 @@ install:
# - voikko dependencies
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install voikko; fi
# - vw dependencies
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then sudo ln -sf /usr/lib/x86_64-linux-gnu/libboost_python-py35.a /usr/lib/x86_64-linux-gnu/libboost_python.a; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then sudo ln -sf /usr/lib/x86_64-linux-gnu/libboost_python-py35.so /usr/lib/x86_64-linux-gnu/libboost_python.so; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then sudo ln -sf /usr/lib/x86_64-linux-gnu/libboost_python-py35.a /usr/lib/x86_64-linux-gnu/libboost_python3.a; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then sudo ln -sf /usr/lib/x86_64-linux-gnu/libboost_python-py35.so /usr/lib/x86_64-linux-gnu/libboost_python3.so; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install vowpalwabbit; fi
script:
- pytest --cov=./
Expand Down
17 changes: 13 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,21 @@ RUN apt-get update \
&& pip install --no-cache-dir \
cython \
fasttextmirror \
## Vowpal Wabbit. Using old VW because 8.5 links to wrong Python version
## Vowpal Wabbit
&& apt-get install -y --no-install-recommends \
libboost-program-options-dev \
zlib1g-dev \
libboost-python-dev \
cmake \
libboost-system-dev \
libboost-thread-dev \
libboost-test-dev \
&& ln -sf /usr/lib/x86_64-linux-gnu/libboost_python-py35.a \
/usr/lib/x86_64-linux-gnu/libboost_python3.a \
&& ln -sf /usr/lib/x86_64-linux-gnu/libboost_python-py35.so \
/usr/lib/x86_64-linux-gnu/libboost_python3.so \
&& pip install --no-cache-dir \
vowpalwabbit==8.4
vowpalwabbit



Expand All @@ -38,12 +46,13 @@ RUN apt-get update \
voikko-fi \
&& pip install --no-cache-dir \
annif[voikko] \
## Vowpal Wabbit. Using old VW because 8.5 links to wrong Python version
## Vowpal Wabbit
&& apt-get install -y --no-install-recommends \
libboost-program-options1.62.0 \
libboost-python1.62.0 \
libboost-system1.62.0 \
&& pip install --no-cache-dir \
vowpalwabbit==8.4 \
vowpalwabbit \
## Clean up:
&& rm -rf /var/lib/apt/lists/* /usr/include/* \
&& rm -rf /root/.cache/pip*/*
Expand Down

0 comments on commit 0fd6e74

Please sign in to comment.