diff --git a/.github/workflows/pre-release-python-bridge.yml b/.github/workflows/pre-release-python-bridge.yml index d3838f6f..0bc49a71 100644 --- a/.github/workflows/pre-release-python-bridge.yml +++ b/.github/workflows/pre-release-python-bridge.yml @@ -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 diff --git a/scripts/setup/setup-python-dev-env.js b/scripts/setup/setup-python-dev-env.js index 50d27997..9186a992 100644 --- a/scripts/setup/setup-python-dev-env.js +++ b/scripts/setup/setup-python-dev-env.js @@ -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)