Force compiler when running python setup.py install

前端 未结 4 1843
后悔当初
后悔当初 2021-02-04 00:40

Is there a way to explicitly force the compiler for building Cython extensions when running python setup.py install? Where setup.py is of the form:

4条回答
  •  渐次进展
    2021-02-04 01:02

    As a remark: on linux, you can use many of the autoconf environment variables. For the compiler

    CC=mpicc python setup.py build_ext -i
    

提交回复
热议问题