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: |
|
run: |
|
||||||
python3 -m pip install -U pip
|
python3 -m pip install -U pip
|
||||||
pip3 install -U invoke wheel
|
pip3 install -U invoke wheel
|
||||||
pip3 install uv==0.1.45
|
pip3 install 'uv<0.3.0'
|
||||||
- name: Set the VIRTUAL_ENV variable for uv to work
|
- name: Allow uv to use the system Python by default
|
||||||
run: echo "VIRTUAL_ENV=${Python_ROOT_DIR}" >> $GITHUB_ENV
|
run: echo "UV_SYSTEM_PYTHON=1" >> $GITHUB_ENV
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Install Specific Python Dependencies
|
- name: Install Specific Python Dependencies
|
||||||
if: ${{ inputs.pip-dependency }}
|
if: ${{ inputs.pip-dependency }}
|
||||||
@ -89,10 +89,8 @@ runs:
|
|||||||
- name: Run invoke install
|
- name: Run invoke install
|
||||||
if: ${{ inputs.install == 'true' }}
|
if: ${{ inputs.install == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
# run: invoke install --uv
|
run: invoke install --uv
|
||||||
run: invoke install
|
|
||||||
- name: Run invoke update
|
- name: Run invoke update
|
||||||
if: ${{ inputs.update == 'true' }}
|
if: ${{ inputs.update == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
# run: invoke update --uv
|
run: invoke update --uv
|
||||||
run: invoke update
|
|
||||||
|
Loading…
Reference in New Issue
Block a user