Skip to content

Commit 0c6f024

Browse files
committed
allow for missing cffi on 3.13
1 parent c77caee commit 0c6f024

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

examples/rust_with_cffi/noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77

88
@nox.session()
99
def test(session: nox.Session):
10-
session.install(SETUPTOOLS_RUST, "wheel", "pytest", "cffi")
10+
session.install(SETUPTOOLS_RUST, "wheel", "pytest")
11+
12+
try:
13+
session.install("cffi", "--only-binary=cffi")
14+
except nox.command.CommandFailed:
15+
session.skip("cffi not available on this platform")
16+
1117
# Ensure build uses version of setuptools-rust under development
1218
session.install("--no-build-isolation", ".")
1319
# Test Python package

0 commit comments

Comments
 (0)