Skip to content

Commit 5f0c2e8

Browse files
committed
pypi: drop before-build header check (setup.py handles it)
1 parent c2f1ad0 commit 5f0c2e8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bindings/python/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ quantcpp = ["_quant.h", "*.so", "*.dylib", "*.dll"]
5656
build = "cp39-* cp310-* cp311-* cp312-* cp313-*"
5757
skip = "*-musllinux_i686 *-manylinux_i686 pp*"
5858

59-
# Verify the bundled header is present (CI step copies quant.h here before
60-
# this hook runs; setup.py also refreshes from ../../quant.h in dev tree).
61-
before-build = "python -c \"import os, sys; sys.exit(0 if os.path.exists('quantcpp/_quant.h') else (sys.stderr.write('quantcpp/_quant.h missing — bundle step did not run\\n') or 1))\""
59+
# setup.py copies ./quant.h → quantcpp/_quant.h on import; the CI workflow
60+
# stages quant.h into the package-dir before invoking cibuildwheel.
61+
# (No before-build hook needed; setup.py runs as part of the wheel build.)
6262

6363
# Smoke-test the built wheel before publishing
6464
test-command = "python -c \"import quantcpp; print('quantcpp', quantcpp.__version__)\""

0 commit comments

Comments
 (0)