Skip to content

Commit 0fb73f6

Browse files
authored
Merge pull request #89 from BerkeleyAutomation/feat/ci
Release: Update cibuildwheel for Python 3.14
2 parents f7d55f1 + 4f9f0e0 commit 0fb73f6

File tree

7 files changed

+33
-19
lines changed

7 files changed

+33
-19
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
platform: [ubuntu-latest, macos-latest, windows-latest, macos-13]
27+
platform: [ubuntu-latest, macos-latest, windows-latest, macos-15-intel]
2828
steps:
2929
- uses: actions/checkout@v4
3030
- name: Build wheels
31-
uses: pypa/cibuildwheel@v2.22.0
31+
uses: pypa/cibuildwheel@v3.2.1
3232
- uses: actions/upload-artifact@v4
3333
with:
3434
path: ./wheelhouse/*.whl

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
runs-on: ${{matrix.platform}}
1212
strategy:
1313
matrix:
14-
platform: [ubuntu-latest, macos-latest, windows-latest, macos-13]
14+
platform: [ubuntu-latest, macos-latest, windows-latest, macos-15-intel]
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Build wheels
18-
uses: pypa/cibuildwheel@v2.22.0
18+
uses: pypa/cibuildwheel@v3.2.1
1919
- uses: actions/upload-artifact@v4
2020
with:
2121
path: ./wheelhouse/*.whl

build_dependencies/install_linux.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# exit immediately on any failed step
22
set -xe
33

4+
# get cmake from pip so we can version-lock
5+
pip install cmake==3.31.6
6+
# Set CMAKE variable to use the cmake in the same directory as python
7+
export CMAKE="$(dirname $(which python))/cmake"
8+
9+
$CMAKE --version
10+
411
mkdir -p deps
512
cd deps
613

@@ -17,28 +24,29 @@ rm -rf fcl
1724
git clone --depth 1 --branch v0.7.0 https://github.com/ambi-robotics/fcl.git
1825

1926
# Install eigen
20-
cmake -B build -S eigen-3.3.9
21-
cmake --install build
27+
$CMAKE -B build -S eigen-3.3.9
28+
$CMAKE --install build
2229

2330
# Build and install libccd
2431
cd libccd
25-
cmake . -D ENABLE_DOUBLE_PRECISION=ON
32+
$CMAKE . -DENABLE_DOUBLE_PRECISION=ON
2633
make -j4
2734
make install
2835
cd ..
2936

3037
# Build and install octomap
3138
cd octomap
32-
cmake . -D CMAKE_BUILD_TYPE=Release -D BUILD_OCTOVIS_SUBPROJECT=OFF -D BUILD_DYNAMICETD3D_SUBPROJECT=OFF
39+
$CMAKE . -DCMAKE_BUILD_TYPE=Release -DBUILD_OCTOVIS_SUBPROJECT=OFF -DBUILD_DYNAMICETD3D_SUBPROJECT=OFF -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_FLAGS="-std=c++17 -Wno-error=template-id-cdtor"
3340
make -j4
3441
make install
3542
cd ..
3643

3744
# Build and install fcl
3845
cd fcl
39-
cmake .
46+
$CMAKE .
4047
make -j4
4148
make install
4249
cd ..
4350

44-
cd ..
51+
# Update library cache so the system can find the newly installed libraries
52+
ldconfig

build_dependencies/install_macos.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# exit immediately on any failed step
22
set -xe
3-
pip install cmake
3+
pip install cmake==3.31.6
4+
5+
# Set CMAKE variable to use the cmake in the same directory as python
6+
export CMAKE="$(dirname $(which python))/cmake"
7+
8+
$CMAKE --version
49

510
mkdir -p deps
611
cd deps
@@ -19,26 +24,26 @@ rm -rf fcl
1924
git clone --depth 1 --branch v0.7.0 https://github.com/ambi-robotics/fcl.git
2025

2126
# Install eigen
22-
cmake -B build -S eigen
23-
sudo cmake --install build
27+
$CMAKE -B build -S eigen
28+
sudo $CMAKE --install build
2429

2530
# Build and install libccd
2631
cd libccd
27-
cmake . -D ENABLE_DOUBLE_PRECISION=ON
32+
$CMAKE . -D ENABLE_DOUBLE_PRECISION=ON
2833
make -j4
2934
sudo make install
3035
cd ..
3136

3237
# Build and install octomap
3338
cd octomap
34-
cmake . -D CMAKE_BUILD_TYPE=Release -D BUILD_OCTOVIS_SUBPROJECT=OFF -D BUILD_DYNAMICETD3D_SUBPROJECT=OFF
39+
$CMAKE . -D CMAKE_BUILD_TYPE=Release -D BUILD_OCTOVIS_SUBPROJECT=OFF -D BUILD_DYNAMICETD3D_SUBPROJECT=OFF
3540
make -j4
3641
sudo make install
3742
cd ..
3843

3944
# Build and install fcl
4045
cd fcl
41-
cmake .
46+
$CMAKE .
4247
make -j4
4348
sudo make install
4449
cd ..

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,13 @@ ignore = [
9797

9898

9999
[tool.cibuildwheel]
100-
skip = ["pp*", "*musllinux*"]
100+
skip = ["*musllinux*"]
101101
test-requires = "pytest"
102102
test-command = "pytest {package}/tests"
103103

104104
[tool.cibuildwheel.linux]
105105
before-all = "bash build_dependencies/install_linux.sh"
106+
repair-wheel-command = "LD_LIBRARY_PATH=/usr/local/lib64 auditwheel repair -w {dest_dir} {wheel}"
106107
archs = ["x86_64"]
107108

108109
[tool.cibuildwheel.macos]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_include_dirs():
4343

4444
def get_libraries_dir():
4545
if is_nix_platform(sys.platform):
46-
lib_dirs = ["/usr/lib", "/usr/local/lib"]
46+
lib_dirs = ["/usr/lib", "/usr/local/lib", "/usr/lib64", "/usr/local/lib64"]
4747

4848
if "LD_LIBRARY_PATH" in os.environ:
4949
lib_dirs += os.environ["LD_LIBRARY_PATH"].split(":")

src/fcl/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.7.0.8"
1+
__version__ = "0.7.0.9"

0 commit comments

Comments
 (0)