forked from seung-lab/DracoPy
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 1.2 KB
/
Dockerfile
File metadata and controls
32 lines (22 loc) · 1.2 KB
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
FROM quay.io/pypa/manylinux2010_x86_64
MAINTAINER Manuel Castro
COPY . /DracoPy
WORKDIR "/DracoPy"
ENV GCC "g++"
RUN rm -rf *.so _skbuild __pycache__ dist DracoPy.egg-info
RUN /opt/python/cp35-cp35m/bin/pip3.5 install pip --upgrade
RUN /opt/python/cp36-cp36m/bin/pip3.6 install pip --upgrade
RUN /opt/python/cp37-cp37m/bin/pip3.7 install pip --upgrade
RUN /opt/python/cp35-cp35m/bin/pip3.5 install scikit-build twine
RUN /opt/python/cp36-cp36m/bin/pip3.6 install scikit-build twine
RUN /opt/python/cp37-cp37m/bin/pip3.7 install scikit-build twine
RUN /opt/python/cp35-cp35m/bin/python3.5 setup.py develop
RUN /opt/python/cp36-cp36m/bin/python3.6 setup.py develop
RUN /opt/python/cp37-cp37m/bin/python3.7 setup.py develop
RUN /opt/python/cp35-cp35m/bin/python3.5 -m pytest -v -x tests.py
RUN /opt/python/cp36-cp36m/bin/python3.6 -m pytest -v -x tests.py
RUN /opt/python/cp37-cp37m/bin/python3.7 -m pytest -v -x tests.py
RUN /opt/python/cp35-cp35m/bin/python3.5 setup.py sdist bdist_wheel
RUN /opt/python/cp36-cp36m/bin/python3.6 setup.py sdist bdist_wheel
RUN /opt/python/cp37-cp37m/bin/python3.7 setup.py sdist bdist_wheel
RUN for whl in `ls dist/*.whl`; do auditwheel repair --plat manylinux2010_x86_64 $whl; done