• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2016 gRPC authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Docker file for building gRPC manylinux Python artifacts.
16
17FROM quay.io/pypa/manylinux1_x86_64
18
19# Update the package manager
20RUN yum update -y
21RUN yum install -y curl-devel expat-devel gettext-devel linux-headers openssl-devel zlib-devel gcc
22
23###################################
24# Install Python build requirements
25RUN /opt/python/cp27-cp27m/bin/pip install cython
26RUN /opt/python/cp27-cp27mu/bin/pip install cython
27RUN /opt/python/cp34-cp34m/bin/pip install cython
28RUN /opt/python/cp35-cp35m/bin/pip install cython
29RUN /opt/python/cp36-cp36m/bin/pip install cython
30RUN /opt/python/cp37-cp37m/bin/pip install cython
31
32####################################################
33# Install auditwheel with fix for namespace packages
34RUN git clone https://github.com/pypa/auditwheel /usr/local/src/auditwheel
35RUN cd /usr/local/src/auditwheel && git checkout bf071b38c9fe78b025ea05c78b1cb61d7cb09939
36RUN /opt/python/cp35-cp35m/bin/pip install /usr/local/src/auditwheel
37RUN rm /usr/local/bin/auditwheel
38RUN cd /usr/local/bin && ln -s /opt/python/cp35-cp35m/bin/auditwheel
39