🐍里造出库给别人用, distutils setuptools 哪个更好?对 pip 支持更好?

2018-12-25 20:58:33 +08:00
 northisland

理不清头绪,求玩🐍玩的好的朋友指点。

我造的库的目前只是 python 代码,暂时不考虑链接其他语言。有公共 git,代码可能他们会改,不考虑打包成 whl 文件之类。

求教各位。求 python 库部署好的教程。

ps. 我用 distutils.core.setup 安装的东东,可以安装,但用pip uninstall packagename无法卸载,提示

It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

无论用 setuptools 还是 distutils,貌似都得把 requrements.txt 里的东东再写一遍,也是我头疼的。

1128 次点击
所在节点    问与答
1 条回复
Kilerd
2018-12-25 21:15:10 +08:00
Twine

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/520951

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX