Skip to content

Commit d0c54f0

Browse files
authored
refactor(limited api): add explicit wheel.py-api to pyproject.toml (#1852)
As part of rapidsai/build-planning#42 I added support for building limited API wheels and conda packages. To enable a RAPIDS-wide bump of the lower-bound of the limited API version we use (currently `cp311`), the flags that set these options are passed in via environment variables. This leads us to an issue where local developer builds, either in devcontainers or otherwise, will build without the limited API, unless devs have set an (otherwise unnecessary) environment variable. So here, I set the `py-api` version explicitly, so that local builds will always produce limited API wheels and so better reflect what we build and test in CI. We retain the ability to bump all of RAPIDS to a different `cp3xx` value because the flag passed in by our scripts overrides the value set in the `pyproject.toml`. There may be short periods where the flags we are building with and the flags set in `pyproject.toml` differ, but that should happen infrequently at best. Authors: - Gil Forsyth (https://github.com/gforsyth) Approvers: - James Lamb (https://github.com/jameslamb) URL: #1852
1 parent d7a28aa commit d0c54f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/cuvs/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ minimum-version = "build-system.requires"
9696
ninja.make-fallback = false
9797
sdist.reproducible = true
9898
wheel.packages = ["cuvs"]
99+
wheel.py-api = "cp311" # overridden in CI builds by arguments from `ci/build_wheel_*.sh` scripts.
99100

100101
[tool.scikit-build.metadata.version]
101102
provider = "scikit_build_core.metadata.regex"

0 commit comments

Comments
 (0)