-
Notifications
You must be signed in to change notification settings - Fork 6
/
manylinux2010.Dockerfile
47 lines (37 loc) · 2.22 KB
/
manylinux2010.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM quay.io/pypa/manylinux2010_x86_64
MAINTAINER William Silversmith
ADD . /build
WORKDIR "/build"
ENV CXX "g++"
RUN rm -rf *.so build __pycache__ dist
# RUN /opt/python/cp27-cp27m/bin/pip2.7 install pip --upgrade
# RUN /opt/python/cp27-cp27m/bin/pip2.7 install oldest-supported-numpy
# RUN /opt/python/cp27-cp27m/bin/pip2.7 install -r requirements_dev.txt
# RUN /opt/python/cp27-cp27m/bin/python2.7 setup.py develop
# RUN /opt/python/cp27-cp27m/bin/python2.7 -m pytest -v -x automated_test.py
# RUN /opt/python/cp35-cp35m/bin/pip3.5 install pip --upgrade
# RUN /opt/python/cp35-cp35m/bin/pip3.5 install oldest-supported-numpy
# RUN /opt/python/cp35-cp35m/bin/pip3.5 install -r requirements_dev.txt
# RUN /opt/python/cp35-cp35m/bin/python3.5 setup.py develop
# RUN /opt/python/cp35-cp35m/bin/python3.5 -m pytest -v -x automated_test.py
RUN /opt/python/cp36-cp36m/bin/pip3.6 install pip --upgrade
RUN /opt/python/cp36-cp36m/bin/pip3.6 install oldest-supported-numpy
RUN /opt/python/cp36-cp36m/bin/pip3.6 install -r requirements_dev.txt
RUN /opt/python/cp36-cp36m/bin/python3.6 setup.py develop
RUN /opt/python/cp36-cp36m/bin/python3.6 -m pytest -v -x automated_test.py
RUN /opt/python/cp37-cp37m/bin/pip3.7 install pip --upgrade
RUN /opt/python/cp37-cp37m/bin/pip3.7 install oldest-supported-numpy
RUN /opt/python/cp37-cp37m/bin/pip3.7 install -r requirements_dev.txt
RUN /opt/python/cp37-cp37m/bin/python3.7 setup.py develop
RUN /opt/python/cp37-cp37m/bin/python3.7 -m pytest -v -x automated_test.py
RUN /opt/python/cp38-cp38/bin/pip3.8 install pip --upgrade
RUN /opt/python/cp38-cp38/bin/pip3.8 install oldest-supported-numpy
RUN /opt/python/cp38-cp38/bin/pip3.8 install -r requirements_dev.txt # no binaries for scipy
RUN /opt/python/cp38-cp38/bin/python3.8 setup.py develop
RUN /opt/python/cp38-cp38/bin/python3.8 -m pytest -v -x automated_test.py
# RUN /opt/python/cp27-cp27m/bin/python2.7 setup.py bdist_wheel
# RUN /opt/python/cp35-cp35m/bin/python3.5 setup.py bdist_wheel
RUN /opt/python/cp36-cp36m/bin/python3.6 setup.py bdist_wheel
RUN /opt/python/cp37-cp37m/bin/python3.7 setup.py bdist_wheel
RUN /opt/python/cp38-cp38/bin/python3.8 setup.py bdist_wheel
RUN for whl in `ls dist/*.whl`; do auditwheel repair $whl --plat manylinux2010_x86_64; done