How can I run a Makefile in setup.py?

前端 未结 3 1098
借酒劲吻你
借酒劲吻你 2021-01-30 17:13

I need to compile ICU using it\'s own build mechanism. Therefore the question:

How can I run a Makefile from setup.py? Obviously, I only want it to run duri

3条回答
  •  情歌与酒
    2021-01-30 17:39

    It is possible to build C libraries with distutils (see the libraries parameter of distutils.core.setup), but you may have to duplicate options that are already in the Makefile, so the easiest thing to do is probably to extend the install command as explained in other replies and call make with the subprocess module.

提交回复
热议问题