Commit db55b79
[Install] Fix error during python/tvm installation
This PR fixes a bug where running "pip install -e /path-to-tvm/python" fails
if installation files remain in python/tvm.
The fix includes:
- Preventing libraries from `python/tvm` from being appended to the library list,
resolving the shutil.SameFileError exception raised by shutil.copy()
- Adding cleanup logic earlier in case it was not executed due to a previous pip installation failure,
resolving the FileExistsError exception raised by shutil.copytree()1 parent 6365a30 commit db55b79
2 files changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| |||
260 | 266 | | |
261 | 267 | | |
262 | 268 | | |
263 | | - | |
| 269 | + | |
264 | 270 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
148 | 158 | | |
149 | 159 | | |
150 | 160 | | |
| |||
0 commit comments