What is setup.py?

后端 未结 10 1661
囚心锁ツ
囚心锁ツ 2020-11-22 09:59

Can anyone please explain what setup.py is and how it can be configured or used?

10条回答
  •  故里飘歌
    2020-11-22 10:36

    setup.py is Python's answer to a multi-platform installer and make file.

    If you’re familiar with command line installations, then make && make install translates to python setup.py build && python setup.py install.

    Some packages are pure Python, and are only byte compiled. Others may contain native code, which will require a native compiler (like gcc or cl) and a Python interfacing module (like swig or pyrex).

提交回复
热议问题