Skip to content

Commit

Permalink
Fix pathing and artifact collection.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgilldc committed Jan 1, 2025
1 parent cd589f8 commit 1d55069
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,26 @@
[envs.hatch-build]
dependencies = ["cython"]

# Wheel build configuration
[build.targets.wheel]
packages = ["bindings/python/rgbmatrix"]
exclude = [
"*.cpp",
"*.pyd",
"*.pyx"
]
artifacts = ["*.so"]

# External hook script which invokes the makefile to build C library.
[build.targets.wheel.hooks.custom]
dependencies = ["cython"]
path = "build-rpi-rgb-led-matrix.py"

# cython build for the python bindings.
[build.targets.wheel]
packages = ["bindings/python/"]

[build.targets.wheel.hooks.cython]
dependencies = ["hatch-cython"]

[build.targets.wheel.hooks.cython.options]
src = "src/bindings/python"
src = "src/bindings/python/rgbmatrix"
includes = ["../../include"]
libraries = "rgbmatrix"
library_dirs = ["../../lib"]
Expand Down

0 comments on commit 1d55069

Please sign in to comment.