Skip to content

Commit

Permalink
Explicitly include *.so in wheel (#7)
Browse files Browse the repository at this point in the history
every file in your package directory will be included in the package,
unless it is ignored by your .gitignore (see
python-poetry/poetry#2015)

since we gitignore *.so files, we need to explicitly include them when
building wheel
  • Loading branch information
delta003 authored Sep 11, 2023
1 parent ba8e9cb commit b5baea7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ description = ""
authors = ["Fulcrum Inc. <[email protected]>"]
readme = "README.md"
packages = [{ include = "fibonacci" }]
include = [{ path = "src/", format = "sdist" }]
include = [
{ path = "src/", format = "sdist" },
{ path = "fibonacci/*.so", format = "wheel" },
]

[tool.poetry.build]
script = "build.py"
Expand Down

0 comments on commit b5baea7

Please sign in to comment.