小编Aka*_*ahs的帖子

如何使用 setup.cfg 构建 Wheel 包后清理 xxx.egg-info 并构建文件夹

我正在按照此处的教程将 python 项目打包到wheel包中。我正在使用setup.cfg进行构建。我能够做到

python -m build --wheel
Run Code Online (Sandbox Code Playgroud)

创建轮子包。但是,我想在“dist/”中获取轮包后自动清理不需要的文件夹“build/”和“xxx.egg-info”。我做了很多搜索,但我找到的唯一答案是使用setup.py(例如此处)。我想知道是否有任何方法可以使用setup.cfg进行清理?

python setuptools python-wheel

7
推荐指数
1
解决办法
3535
查看次数

标签 统计

python ×1

python-wheel ×1

setuptools ×1