forked from BerkeleyAutomation/python-fcl
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 1015 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (23 loc) · 1015 Bytes
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
# NOTE: this docker file is only for local testing of the build
# it should be copied or symlinked up one directory as docker
# can't go into parent directories
# example of testing a build locally:
# ln -sf requirements/Dockerfile .
# docker build . -t pythonfcl
FROM quay.io/pypa/manylinux2010_x86_64:latest
# build and install libccd and fcl using cmake
COPY build_dependencies/install_linux.sh .
RUN bash install_linux.sh
# manylinux includes a bunch of pythons
# to test with others change this env variable
#ENV PATH=/opt/python/cp27-cp27m/bin:$PATH
ENV PATH=/opt/python/cp39-cp39/bin:$PATH
# we need numpy to build python-fcl
# since we set our path we'll be using the right pip
RUN pip install numpy cython
# build the python-fcl module
COPY . /python_fcl
RUN pip wheel /python_fcl --no-deps -w wheelhouse/
RUN pip install /python_fcl --no-index -f /wheelhouse
RUN ls /wheelhouse
RUN auditwheel repair wheelhouse/python_fcl-0.6.1-cp39-cp39-linux_x86_64.whl --plat manylinux2010_x86_64 -w /wheelhouse