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