kvcache-ai / kvcache-ai/ktransformers

build srcript fix of branch qwen3.5

Open
#1,874 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
19.5k
Forks
1.6k
Avg merge
19h 32m
Merged PRs (30d)
27

Description

### Reminder

- [x] I have read the above rules and searched the existing issues.

### System Info

when I build branch qwen3.5,there is some problem about the build srcipt.
1.pyproject.toml:requires = ["setuptools>=61", "wheel", "cmake>=3.16", "pybind11"]
on my buntu22.04,python3.12, report setuptools version not ok.

fix:change to setuptools>=61.0.

2.cmake build error with pip install .,but with the arg excute cmake in kt-keneral in console direct, is is ok
fix: add build_temp="." before subprocess.run

3.build wheel error
File "/opt/anaconda3/envs/sg-lang-qwen3.5/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 509, in _build_extensions_serial
self.build_extension(ext)
File "", line 256, in build_extension
File "", line 439, in _build_single_variant
File "", line 681, in _build_single_variant_impl
AttributeError: 'str' object has no attribute 'rglob'

fix: built_candidates = list(Path(build_temp).rglob(f"{ext.name}*.so"))

### Reproduction

./install build in kt-kernal

### Others

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with pyproject.toml and reproduce the build through ./install in kt-kernal on the reported Python 3.12 and Ubuntu 22.04 setup. Trace the pip/CMake and wheel build paths around subprocess.run and build_ext, then verify that the dependency check, CMake invocation, and shared-library discovery complete successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.