Skip to content

Commit

Permalink
doc: add documentation for using extension modules
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed Nov 22, 2024
1 parent 4932b00 commit 678490d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/building-extension-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ The following is an example, and should not be considered as complete.
...
include = [
{ path = "package/**/*.so", format = "wheel" },
# sources must be present in sdist, can be ignored if you only have *.pyx sources
{ path = "package/**/*.c", format = "sdist" },
]
```

Expand Down Expand Up @@ -133,6 +135,10 @@ packages = [
include = [
{ path = "src/package/**/*.so", format = "wheel" },
]
# if not already excluded via .gitignore
exclude = [
"**/*.c"
]

[tool.poetry.build]
script = "scripts/build-extension.py"
Expand Down Expand Up @@ -361,6 +367,10 @@ packages = [
include = [
{ path = "src/package/**/*.so", format = "wheel" },
]
# exclude any intermediate source files
exclude = [
"**/*.c"
]

[tool.poetry.build]
script = "scripts/build-extension.py"
Expand Down

0 comments on commit 678490d

Please sign in to comment.