Skip to content

Commit 071176d

Browse files
committed
Include drivers in sdist and wheel
1 parent 629d1f2 commit 071176d

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

pyproject.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,20 @@ requires = ["pdm-backend"]
2828
build-backend = "pdm.backend"
2929

3030
[tool.pdm.build]
31-
includes = ["**/*.py", "**/*.v", "**/*.yaml"]
31+
includes = [
32+
"**/*.py",
33+
"**/*.v",
34+
"**/*.yaml"
35+
]
36+
source-includes = [
37+
"**/drivers/*.{c,h,cpp,hpp}"
38+
]
39+
40+
[tool.pdm.build.wheel-data]
41+
purelib = [
42+
{path = "**/drivers/*", relative-to = "."},
43+
]
44+
3245

3346
# Development workflow configuration
3447

0 commit comments

Comments
 (0)