最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Setting specific CMAKE compiler ro use in a python wheel build process - Stack Overflow

programmeradmin1浏览0评论

I am trying to create a python3.12.8 environment with miniconda (v24.11.1) through an environment.yml. In this environment there is one package (pymimir) that needs to build a few C files. Pymimir uses C++20. I am used to installing the Visual Studio C++ build tools to use with CMAKE (v3.31.4) but VS uses C++14 and from all I can find online you can only change the compiler for specific projects not for the general compiler that CMAKE uses in external build processes. I can also only find instruction on how to use environment variables in your personal C project to influence CMAKE but none to influence a CMAKE build inside a python process.

Any advice on this?

发布评论

评论列表(0)

  1. 暂无评论