scons - 在编译过程后删除一些构建的文件

scons - delete some of the built files after the compilation process

本文关键字:构建 文件 删除 编译 过程 scons      更新时间:2023-10-16

我有一个scons设置,我可以选择运行SWIG并从C ++构建python模块。

这将创建诸如

  • x_wrap.cc
  • x.lib
  • x.obj

等。

当我在过程结束时想要的只是这些文件时:

  • _x.pyd
  • x.py

有没有办法让我在构建过程后让 scons 删除不需要的文件?

似乎在共享库行之后使用"删除"功能作为命令,允许我删除不需要的文件。