1
1
mirror of https://github.com/leon-ai/leon.git synced 2025-01-03 06:06:06 +03:00

ci: try to build on Windows without catching exceptions

This commit is contained in:
louistiti 2022-10-12 23:37:23 +08:00
parent e5eeffa2bc
commit a863c872b0
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6

View File

@ -139,24 +139,12 @@ SPACY_MODELS.set('fr', {
LogHelper.success(`${dotVenvPath} deleted`)
}
try {
await command(`pipenv install --site-packages`, {
shell: true,
stdio: 'inherit'
})
await command(`pipenv install --site-packages`, {
shell: true,
stdio: 'inherit'
})
LogHelper.success('Python packages installed')
} catch (e) {
LogHelper.error(`Failed to install Python packages: ${e}`)
if (osType === OSTypes.Windows) {
LogHelper.error(
'Please check the error above. It might be related to Microsoft C++ Build Tools. If it is, you can check here: "https://stackoverflow.com/a/64262038/1768162" then restart your machine and retry'
)
}
process.exit(1)
}
LogHelper.success('Python packages installed')
}
/**