mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-24 17:23:23 +03:00
ci: make use of Pipenv 2022.7.24 and skip lock on Windows
This commit is contained in:
parent
42a3130394
commit
08d7fdf0dd
@ -30,7 +30,7 @@ jobs:
|
||||
# cache: pipenv
|
||||
|
||||
- name: Install Pipenv
|
||||
run: pip install --upgrade pip && pip install pipenv
|
||||
run: pip install --upgrade pip && pip install pipenv==2022.7.24
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
|
@ -140,7 +140,13 @@ SPACY_MODELS.set('fr', {
|
||||
}
|
||||
|
||||
try {
|
||||
await command(`pipenv install --deploy`, {
|
||||
let pipenvInstallCommand = `pipenv install --site-packages`
|
||||
|
||||
if (osType === OSTypes.Windows) {
|
||||
pipenvInstallCommand = `${pipenvInstallCommand} --skip-lock`
|
||||
}
|
||||
|
||||
await command(pipenvInstallCommand, {
|
||||
shell: true,
|
||||
stdio: 'inherit'
|
||||
})
|
||||
@ -153,6 +159,9 @@ SPACY_MODELS.set('fr', {
|
||||
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'
|
||||
)
|
||||
LogHelper.error(
|
||||
'If it is related to some hash mismatch, you can try by installing Pipenv 2022.7.24: pip install pipenv==2022.7.24'
|
||||
)
|
||||
}
|
||||
|
||||
process.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user