Use UV_SYSTEM_PYTHON to allow the system Python interpreter instead of VIRTUAL_ENV (#7317)

This commit is contained in:
Zanie Blue 2024-05-23 23:42:09 -04:00 committed by GitHub
parent 0d46af7a74
commit ed1717942d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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