How to Bootstrap numpy installation in setup.py

前端 未结 7 1091
陌清茗
陌清茗 2020-12-02 12:12

I have a project which has a C extension which requires numpy. Ideally, I\'d like whoever downloads my project to just be able to run python setup.py install or

相关标签:
7条回答
  • 2020-12-02 13:16

    To get pip to work, you can do similarly as Scipy: https://github.com/scipy/scipy/blob/master/setup.py#L205

    Namely, the egg_info command needs to be passed to standard setuptools/distutils, but other commands can use numpy.distutils.

    0 讨论(0)
提交回复
热议问题