Difference between entry_points/console_scripts and scripts in setup.py?

前端 未结 4 1313
情歌与酒
情歌与酒 2020-12-12 19:16

There are basically two ways to install Python console scripts to my path by setup.py:

setup(
    ...
    entry_points = {
        \'console_scr         


        
4条回答
  •  爱一瞬间的悲伤
    2020-12-12 20:04

    The setup tools entry point approach (#1) also has the benefit that on windows an .exe will be created that can be double clicked and invoked like a regular windows program. This is in addition to having a script placed in the bin path on posix-like systems.

提交回复
热议问题