Repository navigation
fix(build): allow pure wheels without a compiler - #925
Conversation
Up to standards ✅🟢 Issues
|
Refresh the branch with main cee0023. The existing PR patch and all changed file blobs remain unchanged. Co-Authored-By: ChatGPT (GPT-6 Astra Pro)
|
Updated the branch with current The remaining docs-build failure occurs after successful Sphinx and pure-wheel builds. The real-Pyodide step logs jsDelivr request failures for Could a maintainer rerun that docs job? I do not have access to rerun the upstream job. The separate advisory mypy result matches the same eight errors on current main, with the baseline linked in the description. Once the docs result is clarified, could you review this focused pure-wheel fix for merge? |
|
Thank you, merged. I built on |
Problem
The documented
RTB_PURE_WHEEL=1build still enables C and C++ inproject()and resolves Python development headers and nanobind unconditionally. A machine without a compiler therefore cannot build the pure-Python wheel, even though both native extensions are disabled.Change
Configure the project with no languages initially. Enable C/C++ and locate the extension-only dependencies inside the existing
RTB_BUILD_EXTENSIONSbranch. Compiled builds keep the same extension configuration.Validation
RTB_PURE_WHEEL=1 CC=rtb-no-c-compiler CXX=rtb-no-cxx-compiler python -m pip wheel --no-deps .: successfully producedroboticstoolbox_python-1.5.0-py3-none-any.whl.Root-Is-Purelib: true,Tag: py3-none-any, and no.so,.pydor.dllfiles.PYTHONPATH=src python -m pytest tests/test_fknm_fallback.py -q: 33 passed, 42 skipped. Native-extension comparison cases were skipped because the extensions are unavailable.git diff --checkpassed.A native build was not run locally because this environment has no compiler.
Main-branch update
Updated with
mainatcee0023535988e4ae9490c81d639a46f2311b8fdin merge commit347780fa9769d74b4ec52bc27dccb65944e4896b. The original PR patch is byte-for-byte unchanged relative to the updated base, andgit diff --checkpasses.Fresh CI for the updated head records the new build and test results. The local validation figures above describe the original submission.
CI note:
mypyreports the same eight errors inblocks/mobile.pyandblocks/arm.pyas current main. Both files and the type-check configuration are unchanged by this PR. The current workflow runs this check as advisory withcontinue-on-error: true.Primary contributor: Afloat16, who has reviewed the original submission.
AI assistance for this follow-up: ChatGPT (GPT-6 Astra Pro), used for main-branch synchronization and verification.