When does “pip install” build a wheel?

后端 未结 3 1333
孤街浪徒
孤街浪徒 2021-01-04 00:44

I found that in different folders, sometimes pip install will build wheel which takes a lot of time, while sometimes it doesn\'t. I\'m not sure why and how to c

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-04 01:41

    This depends on whether your package is a pure python package (without the need to compile anything, just copy the files somewhere) or a package which also includes c source code (in which case a compilation is necessary and a compiler is called and executed, which takes longer).

    http://pythonwheels.com/

    You may also want to have a look at the wheel docu:

    http://wheel.readthedocs.org/en/latest/

提交回复
热议问题