# pycppcomp **Repository Path**: graviton/pycppcomp ## Basic Information - **Project Name**: pycppcomp - **Description**: No description available - **Primary Language**: Unknown - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-09 - **Last Updated**: 2026-04-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pycppcomp ## 环境准备 + 项目依赖 `sdk/` 目录,请确保该目录存在。 + 当前只支持 windows, Visual studio 选择 Release 构建模式 + python 版本为 3.12, 若使用其他 python 版本, 导出的 .pyd 可能不支持. ## build, 构建 ```bash # 创建一个构建目录 mkdir build && cd build #======= 在 build 目录下 #运行 CMake 配置 cmake .. # 构建项目; # 当前 Python runtime 不支持纯 Debug 模式, see https://numpy.org/doc/stable/user/troubleshooting-importerror.html#debug-build-on-windows # in short, windows debug 模式的 dll 会带有 _d 后缀 -> [找不到] # 可以选择 Release, Release With Debug Info 等模式 cmake --build . --config=release -j ``` ## C++ 代码编译与 Google Test 运行 ### 运行 Google Test 在项目根目录运行 ```bash ./bin/Release/math_lib_test.exe ``` ## Python 测试运行 + !! 需要 python version 3.12 + 在项目根目录下,使用以下命令运行 Python 测试: ```bash pytest ./python/tests ```