Commit ce87580
Ailing Zhang
[misc] Support clean command to setup.py.
```
$ python setup.py clean
running clean
removing '/Users/ailzhang/github/taichi/build' (and everything under it)
removing 'bin' (and everything under it)
removing 'python/taichi/assets' (and everything under it)
removing 'python/taichi/lib' (and everything under it)
removing 'python/taichi/examples' (and everything under it)
removing 'python/taichi/tests' (and everything under it)
removing 'python/taichi.egg-info' (and everything under it)
removing generated file taichi/common/commit_hash.h
removing generated file taichi/common/version.h
removing generated file taichi/runtime/llvm/runtime_arm64.bc
removing generated file taichi/runtime/llvm/runtime_arm64.ll
$ python setup.py clean --dry-run
```
Note this command only cleans up local information of your previous builds.
It mainly allows a fresh build without any cache from previous builds.
This is a different use case than `pip uninstall taichi` which uninstalls taichi package from your python environment.
ghstack-source-id: e36eb05
Pull Request resolved: taichi-dev/taichi#29621 parent 57e84de commit ce87580
2 files changed
+34
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| |||
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
116 | | - | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
195 | 223 | | |
196 | 224 | | |
197 | 225 | | |
| |||
218 | 246 | | |
219 | 247 | | |
220 | 248 | | |
221 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
222 | 253 | | |
0 commit comments