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

前端 未结 4 1311
情歌与酒
情歌与酒 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 19:56

    One more difference is that when using console_scripts, my module's init file was run. When just using scripts, the module init was not run, only the script was run.

提交回复
热议问题