(cmd, options = {})
| 17 | |
| 18 | // Helper to run commands |
| 19 | function run(cmd, options = {}) { |
| 20 | console.log(`> ${cmd}`); |
| 21 | try { |
| 22 | execSync(cmd, { stdio: 'inherit', cwd: backendDir, ...options }); |
| 23 | return true; |
| 24 | } catch (error) { |
| 25 | return false; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // Find Python 3.12+ |
| 30 | // Prefer 3.12 first since it has the most stable wheel support for native packages |