Commit a573a72
committed
Simplify editable install detection to PEP 610 only
Remove Methods 2 and 3 for detecting editable installs, keeping only
PEP 610 (direct_url.json) which is the standard for Python 3.10+ and
pip 20.1+.
Changes:
- Remove Method 2: import cuda.bindings to check repo location
(problematic during build requirement phase)
- Remove Method 3: .egg-link file detection (obsolete for Python 3.10+)
- Keep only PEP 610 method (direct_url.json) which is reliable and
doesn't require importing modules during build
This fixes build errors caused by importing cuda.bindings during the
build requirement phase, which interfered with Cython compilation.1 parent 6ea0dec commit a573a72
1 file changed
Lines changed: 2 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
| 213 | + | |
213 | 214 | | |
214 | | - | |
215 | | - | |
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
| |||
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 228 | | |
256 | 229 | | |
257 | 230 | | |
| |||
0 commit comments