Registry / devops / cython-cmake

cython-cmake

JSON →
library0.2.2pypypiunverified

CMake helpers for building Cython modules. Version 0.2.2, with monthly releases. Provides CMake modules to find Cython and compile Cython-generated C/C++ code into Python extension modules.

pip install cython-cmake
INSTALL
IMPORT
SIG · CYTHON-CMAKE
C
cython-cmake
devopspythonv0.2.2
Install
2.5s avg
Import
Disk
30MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 30.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 32MB
30MB installed
● package 30MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FindCython.cmake
include(FetchContent) then include(${CMAKE_BINARY_DIR}/_deps/cython-cmake-src/cmake/FindCython.cmake)
Old path cython-cmake/cmake/FindCython.cmake
Since v0.2.0, CMake modules are vendored and paths changed. Use FetchContent to download and include.

Create a CMakeLists.txt with FetchContent to download cython-cmake and use its CMake modules.

cmake_minimum_required(VERSION 3.14) project(MyProject) include(FetchContent) FetchContent_Declare( cython-cmake GIT_REPOSITORY https://github.com/scikit-build/cython-cmake.git GIT_TAG v0.2.2 ) FetchContent_MakeAvailable(cython-cmake) list(APPEND CMAKE_MODULE_PATH ${cython-cmake_SOURCE_DIR}/cmake) find_package(Cython REQUIRED) # Now use add_cython_target() etc.
Debug
Known issues
breakingv0.2.0 renamed CMake targets and variables. Old FindCython.cmake targets (Cython::cython, Cython::cythonize) changed to Cython::Cython and Cython::Cythonize.
fix
Update CMake code to reference Cython::Cython and Cython::Cythonize instead of old names.
affects: <0.2.0
breakingv0.2.0 changed how to include CMake modules. Previously modules were installed site-wide; now they must be fetched via FetchContent or vendored.
fix
Use FetchContent to download cython-cmake and append its cmake directory to CMAKE_MODULE_PATH.
affects: <0.2.0
gotchaRequires Cython to be installed. If Cython is not present, find_package(Cython) will fail. Install Cython via pip or conda.
fix
pip install cython or conda install cython before running cmake.
affects: all
gotchaVERSION_VAR in FindCython.cmake was broken in v0.2.1 and fixed in v0.2.2. If you specify a version, upgrade to v0.2.2.
fix
Upgrade to cython-cmake>=0.2.2.
affects: 0.2.1
Upgrade
Version history
0.2.2latest on PyPI · released Mar 16, 2026
Audit
Dependencies
CythonrequiredRuntime dependency for Cython compilation
cmakeoptionalBuild tool required to run CMake
Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
cython-cmake — pip install cython-cmake · libregistry