创建一个setup.cfg像这样: [metadata] name = a-cool-name-here version = 0.0.0a0 [options] py_modules = a_cool_name_here install_requires = pthogen [options.entry_points] pthogen = a_cool_name_here = a_cool_name_here:main [bdist_wheel] universal = 1 和a_cool_name_here.py类似: def main(): # your cool in