Skip to content

Commit 883ab76

Browse files
authored
Merge pull request #268 from libigl/alecjacobson/support-cp313 [skip ci]
Support 3.13
2 parents 3f5a66f + 927dc2f commit 883ab76

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.github/workflows/wheels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
- os: macos-13
4343
pybuilds: cp38
4444

45+
name: >
46+
${{ matrix.pybuilds }} ${{ matrix.os }} ${{ matrix.arch }}
47+
4548
steps:
4649
- uses: actions/checkout@v4
4750
- uses: actions/setup-python@v5

CMakeLists.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
1414
# <20 for embree
1515
set(CMAKE_CXX_STANDARD 17)
1616

17-
if (CMAKE_VERSION VERSION_LESS 3.18)
18-
set(DEV_MODULE Development)
19-
else()
20-
set(DEV_MODULE Development.Module)
21-
endif()
22-
23-
find_package(Python 3.8 COMPONENTS Interpreter ${DEV_MODULE} REQUIRED)
17+
find_package(Python 3.8
18+
REQUIRED COMPONENTS Interpreter Development.Module
19+
OPTIONAL_COMPONENTS Development.SABIModule)
2420

2521
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
2622
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
@@ -125,7 +121,10 @@ function(pyigl_include prefix name)
125121
file(WRITE "${generated_dir}/BINDING_INVOCATIONS.in" "${BINDING_INVOCATIONS}")
126122

127123
set(target_name "pyigl${prefix_lc}_${name}")
128-
nanobind_add_module(${target_name} ${sources})
124+
nanobind_add_module(
125+
${target_name}
126+
STABLE_ABI
127+
${sources})
129128

130129
# important for scikit-build
131130
install(TARGETS ${target_name} LIBRARY DESTINATION "igl/${subpath}")

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build-backend = "scikit_build_core.build"
1414

1515
[project]
1616
name = "libigl"
17-
version = "2.6.0"
17+
version = "2.6.1"
1818
description = "libigl: A simple C++ geometry processing library"
1919
readme = "README.md"
2020
requires-python = ">=3.8"
@@ -42,6 +42,7 @@ build-dir = "build/{wheel_tag}"
4242
# Build stable ABI wheels for CPython 3.12+
4343
wheel.py-api = "cp312"
4444

45+
4546
[tool.scikit-build.cmake]
4647
build-type = "Release"
4748

0 commit comments

Comments
 (0)