python: simple example for a python egg with a one-file source file?

前端 未结 2 931
遥遥无期
遥遥无期 2021-02-01 08:48

I\'m not quite sure how to build a really simple one-file source module. Is there a sample module out there one the web somewhere which can be built as a python .egg?

Fr

2条回答
  •  耶瑟儿~
    2021-02-01 09:49

    You can use the py_modules argument instead of the packages argument to list single file modules.

    See https://docs.python.org/3/distutils/setupscript.html#listing-individual-modules

提交回复
热议问题