Source builds need workarounds for sdist, CUDA arches, non-x86 CPU dispatch, and setup.py hardcoding
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 536
- Avg merge
- 12h 12m
- Merged PRs (30d)
- 4
Description
Building CTranslate2 from source currently needs multiple downstream workarounds. Core upstream issues:
-
No PyPI sdist (highest impact)
CTranslate2 publishes wheels but not source distributions, which forces custom source-resolution logic.
Ask: Publish sdists to PyPI. -
Deprecated FindCUDA path breaks Blackwell arch handling (related: #1933)
CurrentFindCUDA/select_compute_arch.cmakebehavior drops newer multi-digit CUDA arch majors, requiring manual-gencodefixes.
Ask: Migrate toFindCUDAToolkit+CMAKE_CUDA_ARCHITECTURES. -
ENABLE_CPU_DISPATCHbreaks on unsupported non-x86/non-arm64 arches
CPU_ISA_DISPATCHis undefined on targets likeppc64le/s390x.
Ask: Add support or gracefully disable/fallback on unsupported arches. -
setup.pyhardcodes absolute rpaths (related context: #1704)
Absolute paths reduce wheel relocatability.
Ask: Use$ORIGIN-relative rpaths by default. -
setup.pyhardcodes GCC-specific flags (related: #1704)
Flags like-fvisibility=hiddenand-fno-openmp-implicit-rpathcan fail on clang/amdclang.
Ask: Gate flags by compiler/toolchain detection.
These fixes would significantly improve portability and reduce downstream patching.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the packaging setup.py and the deprecated FindCUDA/select_compute_arch.cmake path first, then locate ENABLE_CPU_DISPATCH and CPU_ISA_DISPATCH handling for unsupported architectures. Check how source distributions and wheels are configured. Done means sdists publish successfully, CUDA architectures work, unsupported CPU targets fall back cleanly, and rpaths and compiler flags are portable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, python
- Domain
- build-system, operating-systems, release
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100