From b0849c004681efa461dd6c0c923d4d3297b611b0 Mon Sep 17 00:00:00 2001 From: louistiti Date: Thu, 13 Oct 2022 01:11:12 +0800 Subject: [PATCH] ci: add PIP_NO_BINARY --- .github/workflows/pre-release-python-bridge.yml | 10 +++------- scripts/setup/setup-python-dev-env.js | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pre-release-python-bridge.yml b/.github/workflows/pre-release-python-bridge.yml index 7e3e5bc9..224b68c7 100644 --- a/.github/workflows/pre-release-python-bridge.yml +++ b/.github/workflows/pre-release-python-bridge.yml @@ -5,6 +5,7 @@ on: workflow_dispatch env: PIPENV_PIPFILE: bridges/python/src PIPENV_VENV_IN_PROJECT: true + PIP_NO_BINARY: 'cx_Freeze' jobs: build: @@ -27,7 +28,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.9.10 - # cache: pipenv + cache: pipenv + cache-dependency-path: bridges/python/src/Pipfile.lock - name: Install Pipenv run: pip install --upgrade pip && pip install pipenv==2022.7.24 @@ -47,10 +49,6 @@ jobs: - name: Install core run: npm ci - - name: Setup MSBuild - uses: microsoft/setup-msbuild@v1.1 - if: matrix.os == 'windows-latest' - - name: Setup Python bridge run: npm run setup:python-bridge @@ -75,8 +73,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.9.10 - cache: pipenv - cache-dependency-path: bridges/python/src/Pipfile.lock - name: Set Python bridge version working-directory: bridges/python/src diff --git a/scripts/setup/setup-python-dev-env.js b/scripts/setup/setup-python-dev-env.js index 9186a992..ff90d39a 100644 --- a/scripts/setup/setup-python-dev-env.js +++ b/scripts/setup/setup-python-dev-env.js @@ -140,7 +140,7 @@ SPACY_MODELS.set('fr', { } try { - let pipenvInstallCommand = `pipenv install --site-packages` + let pipenvInstallCommand = `pipenv install --verbose --site-packages` if (osType === OSTypes.Windows) { pipenvInstallCommand = `${pipenvInstallCommand} --skip-lock`