Conversation
luhenry
added a commit
that referenced
this pull request
Sep 8, 2026
pylibmc binds libmemcached, which has no riscv64 devel package available (EPEL is absent for this arch, and Rocky 10's own repos carry no libmemcached-devel at all). Build libmemcached-awesome, the maintained header/API/SONAME-compatible fork, from source in CIBW_BEFORE_ALL instead, and package its BSD-3-Clause licence text alongside pylibmc's own since auditwheel vendors the resulting libmemcached.so into the wheel.
CIBW_BEFORE_ALL_LINUX runs inside the manylinux container via sh -c, which does not inherit the job's plain env: vars -- only what CIBW_ENVIRONMENT passes through. LIBMEMCACHED_VERSION was unset there, so the download URL collapsed to .../tags/.tar.gz and 404'd.
src/libmemcached/CMakeLists.txt calls flex_target() to generate the CSL scanner (csl/scanner.l); bison ships in the manylinux image already but flex does not, so FindFLEX never defines the command and configure fails with 'Unknown CMake command flex_target'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pylibmc1.6.3C extension binding libmemcached, a client library for memcached. Upstream publishes no riscv64 wheel.
Mirrors upstream's
cd.ymlcibuildwheel build.Differs from upstream
CIBW_BEFORE_ALL- Rocky 10 has nolibmemcached-develfor riscv64 (no EPEL), unlike upstream'syum install.Testing
runtests.py-equivalentpytest tests), against a realmemcachedserver started inCIBW_BEFORE_TEST.License: Wheel bundles libmemcached-awesome (BSD-3-Clause); upstream ships no licence text for it, so the build adds one.
Not yet build-tested locally this session (no working container runtime available); relies on the
pull_requestCI run for the actual riscv64 build/test/publish-dry-run verification.