Skip to content

Commit

Permalink
Update pecos dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-fu committed Sep 2, 2022
1 parent c11ba38 commit 4a82ea2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.8-slim-bullseye AS builder
LABEL maintainer="Juho Inkinen <juho.inkinen@helsinki.fi>"

SHELL ["/bin/bash", "-c"]
ARG optional_dependencies=dev,voikko,pycld3,fasttext,nn,omikuji,yake,spacy
ARG optional_dependencies=dev,voikko,pycld3,fasttext,nn,omikuji,yake,spacy,pecos
# Bulding fastText needs some system packages
RUN if [[ $optional_dependencies =~ "fasttext" ]]; then \
apt-get update && \
Expand All @@ -20,7 +20,7 @@ FROM python:3.8-slim-bullseye
SHELL ["/bin/bash", "-c"]
COPY --from=builder /usr/local/lib/python3.8 /usr/local/lib/python3.8

ARG optional_dependencies=dev,voikko,pycld3,fasttext,nn,omikuji,yake,spacy
ARG optional_dependencies=dev,voikko,pycld3,fasttext,nn,omikuji,yake,spacy,pecos
# Install system dependencies needed at runtime:
RUN apt-get update && \
if [[ $optional_dependencies =~ "voikko" ]]; then \
Expand Down Expand Up @@ -49,6 +49,10 @@ RUN if [[ $optional_dependencies =~ "spacy" ]]; then \
python -m spacy download $model; \
done; \
fi
RUN if [[ $optional_dependencies =~ "pecos" ]]; then \
mkdir /.cache -m a=rwx; \
fi


# Install Annif by copying source and make the installation editable:
COPY annif /Annif/annif
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def read(fname):
'yake': ['yake==0.4.5'],
'pycld3': ['pycld3'],
'spacy': ['spacy==3.3.*'],
'pecos': ['libpecos==0.2.3'],
'pecos': ['libpecos==0.4.*'],
'dev': [
'codecov',
'coverage<=6.2',
Expand Down

0 comments on commit 4a82ea2

Please sign in to comment.