Loading...
Loading...
Guidance for building and fixing Cython extensions, particularly for numpy compatibility issues. This skill should be used when tasks involve compiling Cython code, fixing deprecated numpy type errors, or resolving compatibility issues between Cython extensions and modern numpy versions (2.0+).
npx skill4agent add letta-ai/skills build-cython-ext.pyxnp.intnp.floatnp.bool| Extension | Description | Must Check |
|---|---|---|
| Cython implementation files | Critical - Often contain numpy calls |
| Cython declaration files | Yes - May contain type declarations |
| Python files | Yes - May use deprecated types |
| Build configuration | Yes - Defines compilation settings |
| Generated C/C++ files | Only if debugging compilation |
.py.pyx| Deprecated | Replacement |
|---|---|
| |
| |
| |
| |
| |
| |
Grep for patterns like "np\.int[^0-9_]" across all filesSearch specifically in *.pyx and *.pxd files.pyx.pyx.py.pyx.pyx# Example verification pattern
import numpy as np
from module import cython_function
# Test with actual numpy arrays
test_data = np.array([1, 2, 3], dtype=np.int64)
result = cython_function(test_data)
assert result is not Nonetype: "py".pyx.pyxnumpy.intnp.int.pyx.pxd.py