File tree 3 files changed +13
-3
lines changed
3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,12 @@ if (NOT SKBUILD)
17
17
in your environment once and use the following command that avoids
18
18
a costly creation of a new virtual environment at every compilation:
19
19
=====================================================================
20
- $ pip install --no-build-isolation -v .
21
- =====================================================================" )
20
+ $ pip install nanobind scikit-build-core[pyproject]
21
+ $ pip install --no-build-isolation -ve .
22
+ =====================================================================
23
+ You can optionally add -Ceditable.rebuild=true to auto-rebuild when you
24
+ import. Otherwise, you need to rerun the above command when you edit C++ files.
25
+ " )
22
26
endif ()
23
27
24
28
# Try to import all Python components potentially needed by nanobind
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ This repository contains a tiny project showing how to create C++ bindings
16
16
using [ nanobind] ( https://github.com/wjakob/nanobind ) and
17
17
[ scikit-build-core] ( https://scikit-build-core.readthedocs.io/en/latest/index.html ) . It
18
18
was derived from the corresponding _ pybind11_ [ example
19
- project] ( https://github.com/pybind/cmake_example / ) developed by
19
+ project] ( https://github.com/pybind/scikit_build_example / ) developed by
20
20
[ @henryiii ] ( https://github.com/henryiii ) .
21
21
22
22
Installation
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ Homepage = "https://github.com/wjakob/nanobind_example"
20
20
21
21
22
22
[tool .scikit-build ]
23
+ # Protect the configuration against future changes in scikit-build-core
24
+ minimum-version = " 0.4"
25
+
26
+ # Setuptools-style build caching in a local directory
27
+ build-dir = " build/{wheel_tag}"
28
+
23
29
# Build stable ABI wheels for CPython 3.12+
24
30
wheel.py-api = " cp312"
25
31
You can’t perform that action at this time.
0 commit comments