Commit b2fb0eed authored by Joachim Folz's avatar Joachim Folz
Browse files

replace --only-binary ":all:" with --prefer-binary for pip install

parent b176508a
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6,7 +6,8 @@ cd doc
PYBIN="/opt/python/cp39-cp39/bin/"

# install requirements
"${PYBIN}/pip" install --only-binary ":all:" -r ../doc_requirements.txt
"${PYBIN}/pip" install -U pip --no-warn-script-location
"${PYBIN}/pip" install --prefer-binary -r ../doc_requirements.txt
"${PYBIN}/pip" install crumpets --no-index -f ../dist

# build doc
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ PYBIN="/opt/python/cp39-cp39/bin/"
# Install and test
cd test
for PYBIN in /opt/python/@(${PYVERS})*/bin; do
    "${PYBIN}/pip" install --only-binary ":all:" -r ../test_requirements.txt
    "${PYBIN}/pip" install --prefer-binary -r ../test_requirements.txt
    "${PYBIN}/pip" install crumpets --no-index -f ../dist
    "${PYBIN}/python" -m pytest -vv
done

docker/README.md

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
This folder contains dockerfiles for the images that we
need in continuous integration.

### Commands to build docker images for CI
```
sudo docker build -f python3.7.3-torch1.1.0-cuda10.0-cudnn7 -t crumpets/torch:1.1.0-python3.7.3-cuda10.0-cudnn7 .
sudo docker build -f python3.6.8-torch1.1.0-cuda10.0-cudnn7 -t crumpets/torch:1.1.0-python3.6.8-cuda10.0-cudnn7 .
```
+0 −26
Original line number Diff line number Diff line
FROM nvidia/cuda:10.0-cudnn7-devel
MAINTAINER "Joachim Folz"

SHELL ["/bin/bash", "-c"]
RUN apt-get update \
 && DEBIAN_FRONTEND=noninteractive apt-get install -y \
      make build-essential libssl-dev zlib1g-dev libbz2-dev \
      libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \
      libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git \
 && apt-get clean
RUN mkdir workspace \
 && cd workspace \
 && curl https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz | tar -xz \
 && cd Python-3.6.8 \
 && ./configure --prefix=/usr --enable-shared --with-ensurepip=install \
 && make -j8 \
 && make install \
 && cd / \
 && rm -rf workspace \
 && cd /usr/bin \
 && rm python \
 && ln -s python3.6 python \
 && ln -s pip3.6 pip
RUN pip install https://download.pytorch.org/whl/cu100/torch-1.1.0-cp36-cp36m-linux_x86_64.whl \
 && pip install torchvision \
 && rm -rf /home/root/.cache
+0 −26
Original line number Diff line number Diff line
FROM nvidia/cuda:10.0-cudnn7-devel
MAINTAINER "Joachim Folz"

SHELL ["/bin/bash", "-c"]
RUN apt-get update \
 && DEBIAN_FRONTEND=noninteractive apt-get install -y \
      make build-essential libssl-dev zlib1g-dev libbz2-dev \
      libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \
      libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git \
 && apt-get clean
RUN mkdir workspace \
 && cd workspace \
 && curl https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz | tar -xz \
 && cd Python-3.7.3 \
 && ./configure --prefix=/usr --enable-shared --with-ensurepip=install \
 && make -j8 \
 && make install \
 && cd / \
 && rm -rf workspace \
 && cd /usr/bin \
 && rm python \
 && ln -s python3.7 python \
 && ln -s pip3.7 pip
RUN pip install https://download.pytorch.org/whl/cu100/torch-1.1.0-cp37-cp37m-linux_x86_64.whl \
 && pip install torchvision \
 && rm -rf /home/root/.cache
Loading