Skip to content

sqlglotc: add build-sqlglotc.yml for riscv64 wheels - #1737

Merged
luhenry merged 1 commit into
mainfrom
sqlglotc
Sep 12, 2026
Merged

luhenry merged 1 commit into
mainfrom
sqlglotc

Conversation

@luhenry

@luhenry luhenry commented Sep 11, 2026

Copy link
Copy Markdown
Member

Mypyc-compiled companion extension for sqlglot: cibuildwheel builds the sqlglotc/ subdirectory of the tobymao/sqlglot monorepo, compiling a subset of sqlglot's own modules into .so files that shadow the pure-Python ones once installed. Upstream publishes no riscv64 wheel.

Mirrors upstream's package-publish.yml build-wheels job.

Differs from upstream

  • Nothing beyond the riscv64 image - sqlglotc/pyproject.toml carries no [tool.cibuildwheel] table to inherit from, so CIBW_MANYLINUX_RISCV64_IMAGE is the only build-side addition.

Matrix: cp312/cp313/cp314, no cp314t - upstream itself ships none (mypyc doesn't support free-threaded builds).

Testing

  • Upstream's build-wheels job runs no tests; added CIBW_TEST_COMMAND running upstream's own make unitc recipe (SKIP_INTEGRATION=1 python -m unittest) against the installed compiled wheel.
  • duckdb/pandas (imported by tests/test_optimizer.py and tests/test_executor.py) come from our registry - no riscv64 wheels on public PyPI.

License: OK

CI running on riscv64; will update with final pass/skip counts once the run completes.

luhenry added a commit that referenced this pull request Sep 11, 2026
@luhenry
luhenry merged commit 0fed5eb into main Sep 12, 2026
8 checks passed
@luhenry
luhenry deleted the sqlglotc branch September 12, 2026 19:31
@luhenry luhenry linked an issue Sep 13, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sqlglotc riscv64 support

1 participant