1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-27 16:16:48 +03:00

ci: add PIP_NO_BINARY

This commit is contained in:
louistiti 2022-10-13 01:11:12 +08:00
parent 0efed9d5f3
commit b0849c0046
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6
2 changed files with 4 additions and 8 deletions

View File

@ -5,6 +5,7 @@ on: workflow_dispatch
env: env:
PIPENV_PIPFILE: bridges/python/src PIPENV_PIPFILE: bridges/python/src
PIPENV_VENV_IN_PROJECT: true PIPENV_VENV_IN_PROJECT: true
PIP_NO_BINARY: 'cx_Freeze'
jobs: jobs:
build: build:
@ -27,7 +28,8 @@ jobs:
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: 3.9.10 python-version: 3.9.10
# cache: pipenv cache: pipenv
cache-dependency-path: bridges/python/src/Pipfile.lock
- name: Install Pipenv - name: Install Pipenv
run: pip install --upgrade pip && pip install pipenv==2022.7.24 run: pip install --upgrade pip && pip install pipenv==2022.7.24
@ -47,10 +49,6 @@ jobs:
- name: Install core - name: Install core
run: npm ci run: npm ci
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
if: matrix.os == 'windows-latest'
- name: Setup Python bridge - name: Setup Python bridge
run: npm run setup:python-bridge run: npm run setup:python-bridge
@ -75,8 +73,6 @@ jobs:
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: 3.9.10 python-version: 3.9.10
cache: pipenv
cache-dependency-path: bridges/python/src/Pipfile.lock
- name: Set Python bridge version - name: Set Python bridge version
working-directory: bridges/python/src working-directory: bridges/python/src

View File

@ -140,7 +140,7 @@ SPACY_MODELS.set('fr', {
} }
try { try {
let pipenvInstallCommand = `pipenv install --site-packages` let pipenvInstallCommand = `pipenv install --verbose --site-packages`
if (osType === OSTypes.Windows) { if (osType === OSTypes.Windows) {
pipenvInstallCommand = `${pipenvInstallCommand} --skip-lock` pipenvInstallCommand = `${pipenvInstallCommand} --skip-lock`