I am currently building an image from alpine:3.7.
There are two packages that I am having problems with:
- pendulum (specifically python-dateutils package)
- service_identity (specifically attrs package)
The error that I receive it is:
Could not find a version that satisfies the requirement setuptools (from versions: ) No matching distribution found for setuptools
Note: all packages are pre-cached on a directory using pip download.
The dockerfile looks as follows:
RUN apk add --no-cache --virtual .build-deps <dev packages>
&& apk add --no-cache --update python3
&& pip3 install --upgrade pip setuptools
RUN pip3 install -f ./python-packages --no-index -r requirements.txt ./python-packages/pkgs
....
dev-packages such as libffi-dev, libressl-dev, etc.
Kenil Vasani
I’m not sure about the full list of dev-packages to build in the question, but it should be the following:
g++
(GNU C++ standard library and compiler),python3-dev
(python3 development files),libffi-dev
(libffi development files) andopenssl-dev
(Toolkit for SSL v2/v3 and TLS v1 development files).The
Dockerfile
is: