Skip to content

ta-lib: add build-ta-lib.yml for riscv64 wheels - #1219

Merged
luhenry merged 2 commits into
mainfrom
ta-lib
Sep 7, 2026
Merged

ta-lib: add build-ta-lib.yml for riscv64 wheels#1219
luhenry merged 2 commits into
mainfrom
ta-lib

Conversation

@luhenry

@luhenry luhenry commented Sep 7, 2026

Copy link
Copy Markdown
Member

Compiles a Cython wrapper (talib._ta_lib) around the TA-Lib C library, which the build fetches and compiles from source at build time. Upstream publishes no riscv64 wheel.

Mirrors upstream's wheels.yml Linux job.

Differs from upstream

  • Drops cp313t/cp314t - upstream's own CIBW_SKIP excludes them too.
  • Drops musllinux - no musllinux riscv64 numpy wheel on PyPI or our registry.
  • Downloads the TA-Lib C source as .tar.gz instead of .zip - avoids an extra unzip dependency.

Matrix: cp312/cp313/cp314 (no cp314t; see above).

Testing

  • same as upstream
  • drops polars/maturin and ignores tests/test_polars.py - no riscv64 polars wheel exists to install.
  • pins PIP_ONLY_BINARY=numpy,pandas - unconstrained resolution picked pandas' latest sdist-only release.

License: Wheel bundles the TA-Lib C library (BSD-3-Clause); upstream's license-files list doesn't cover it, so the build widens it and drops the library's LICENSE alongside ta-lib-python's own.

Patches

  • 0001-Widen-license-files-to-cover-the-vendored-TA-Lib-C-license.patch - Upstream-Status: To upstream. Without it the wheel ships only ta-lib-python's own LICENSE, missing the vendored C library's notice. Reproduces on any arch.

Built on cp312/cp313/cp314-manylinux_riscv64; 39 passed, 3 deselected on each.

luhenry added a commit that referenced this pull request Sep 7, 2026
pandas 3.0.5 is on PyPI without a riscv64 wheel yet, so unconstrained
pip resolution picks its sdist and fails to build it (no meson-python
in the test virtualenv). PIP_ONLY_BINARY=numpy,pandas keeps resolution
on the newest version that has a riscv64 wheel on our registry.
luhenry added a commit that referenced this pull request Sep 7, 2026
@luhenry
luhenry merged commit adf5435 into main Sep 7, 2026
9 checks passed
@luhenry
luhenry deleted the ta-lib branch September 7, 2026 08:23
@luhenry luhenry linked an issue Sep 7, 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.

ta-lib riscv64 support

1 participant