mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Use UV_SYSTEM_PYTHON
to allow the system Python interpreter instead of VIRTUAL_ENV
(#7317)
This commit is contained in:
parent
0d46af7a74
commit
ed1717942d
12
.github/actions/setup/action.yaml
vendored
12
.github/actions/setup/action.yaml
vendored
@ -50,9 +50,9 @@ runs:
|
||||
run: |
|
||||
python3 -m pip install -U pip
|
||||
pip3 install -U invoke wheel
|
||||
pip3 install uv==0.1.45
|
||||
- name: Set the VIRTUAL_ENV variable for uv to work
|
||||
run: echo "VIRTUAL_ENV=${Python_ROOT_DIR}" >> $GITHUB_ENV
|
||||
pip3 install 'uv<0.3.0'
|
||||
- name: Allow uv to use the system Python by default
|
||||
run: echo "UV_SYSTEM_PYTHON=1" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
- name: Install Specific Python Dependencies
|
||||
if: ${{ inputs.pip-dependency }}
|
||||
@ -89,10 +89,8 @@ runs:
|
||||
- name: Run invoke install
|
||||
if: ${{ inputs.install == 'true' }}
|
||||
shell: bash
|
||||
# run: invoke install --uv
|
||||
run: invoke install
|
||||
run: invoke install --uv
|
||||
- name: Run invoke update
|
||||
if: ${{ inputs.update == 'true' }}
|
||||
shell: bash
|
||||
# run: invoke update --uv
|
||||
run: invoke update
|
||||
run: invoke update --uv
|
||||
|
Loading…
Reference in New Issue
Block a user