Skip to content

Commit 92502dc

Browse files
committed
update docker file for manylinux build
1 parent 6ecd4d2 commit 92502dc

5 files changed

Lines changed: 21 additions & 34 deletions

File tree

requirements/Dockerfile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@
66
# ln -sf requirements/Dockerfile .
77
# docker build . -t pythonfcl
88

9-
FROM quay.io/pypa/manylinux1_x86_64:latest
10-
11-
12-
RUN yum install -y gcc
13-
14-
# install cmake 2.8.12
15-
COPY requirements/install_cmake.bash .
16-
RUN bash install_cmake.bash
9+
FROM quay.io/pypa/manylinux_2_24_x86_64:latest
1710

1811
# clone FCL and libccd
1912
# the exact checkouts are in clone.bash
@@ -27,12 +20,15 @@ RUN bash build.bash
2720
# manylinux includes a bunch of pythons
2821
# to test with others change this env variable
2922
#ENV PATH=/opt/python/cp27-cp27m/bin:$PATH
30-
ENV PATH=/opt/python/cp36-cp36m/bin:$PATH
23+
ENV PATH=/opt/python/cp39-cp39/bin:$PATH
3124

3225
# we need numpy to build python-fcl
3326
# since we set our path we'll be using the right pip
3427
RUN pip install numpy cython
3528

3629
# build the python-fcl module
3730
COPY . /python_fcl
38-
RUN cd /python_fcl && python setup.py build_ext
31+
RUN pip wheel /python_fcl --no-deps -w wheelhouse/
32+
RUN pip install /python_fcl --no-index -f /wheelhouse
33+
RUN ls /wheelhouse
34+
RUN auditwheel repair wheelhouse/python_fcl-0.6.1-cp39-cp39-linux_x86_64.whl --plat manylinux_2_24_x86_64 -w /wheelhouse

requirements/build.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1+
echo "Install eigen"
2+
cmake -B build -S eigen-3.3.9
3+
cmake --install build
4+
5+
echo "Build and install libccd"
16
cd libccd
27
cmake .
38
make -j4
49
make install
510
cd ..
611

12+
echo "Build and install octomap"
713
cd octomap
814
cmake .
915
make -j4
1016
make install
1117
cd ..
1218

19+
echo "Build and install fcl"
1320
cd fcl
1421
cmake .
1522
make -j4

requirements/clone.bash

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
rm -rf libccd
2-
git clone https://github.com/danfis/libccd.git
3-
cd libccd
4-
git pull
5-
git checkout 64f02f741ac94fccd0fb660a5bffcbe6d01d9939
6-
cd ..
2+
git clone --depth 1 --branch v2.1 https://github.com/danfis/libccd.git
73

84
rm -rf octomap
9-
git clone https://github.com/OctoMap/octomap.git
10-
cd octomap
11-
git pull
12-
git checkout b8c1d62a7a64ce0a5df278503f31d73acafa97e4
13-
cd ..
5+
git clone --depth 1 --branch v1.8.0 https://github.com/OctoMap/octomap.git
146

157
rm -rf fcl
16-
git clone https://github.com/flexible-collision-library/fcl.git
17-
cd fcl
18-
git pull
19-
git checkout 22f375f333beccc10c527974cef96784f0841649
20-
cd ..
8+
git clone --depth 1 --branch v0.6.1 https://github.com/flexible-collision-library/fcl.git
219

2210
# get eigen
23-
#curl -OL https://github.com/RLovelett/eigen/archive/3.3.4.tar.gz
24-
#tar -zxvf 3.3.4.tar.gz
11+
curl -OL https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz
12+
tar -zxf eigen-3.3.9.tar.gz

requirements/install_cmake.bash

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
if prefix in sys.platform:
2020
platform_supported = True
2121
include_dirs = ['/usr/include',
22-
'/usr/include',
23-
'/usr/include/eigen3']
22+
'/usr/local/include',
23+
'/usr/include/eigen3',
24+
'/usr/local/include/eigen3']
2425
lib_dirs = ['/usr/lib',
2526
'/usr/local/lib']
2627

0 commit comments

Comments
 (0)