Skip to content

Commit 059d5a6

Browse files
committed
Use environment variable for pipx
1 parent df1c1f7 commit 059d5a6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/main.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,16 @@ jobs:
9090
if: steps.cache.outputs.cache-hit != 'true'
9191
working-directory: setuptools/tests/config
9292
run: python -m downloads.preload setupcfg_examples.txt
93+
- name: Adjust env vars
94+
shell: bash
95+
run: |
96+
echo 'PIPX_DEFAULT_PYTHON=${{ steps.python-install.outputs.python-path }}' >> $GITHUB_ENV
9397
- name: Pre-build distributions for test
9498
shell: bash
9599
run: |
96100
rm -rf dist
97101
# workaround for pypa/setuptools#4333
98-
pipx run \
99-
--python ${{ steps.python-install.outputs.python-path }} \
100-
--pip-args 'pyproject-hooks!=1.1' \
101-
build
102+
pipx run --pip-args 'pyproject-hooks!=1.1' build
102103
echo "PRE_BUILT_SETUPTOOLS_SDIST=$(ls dist/*.tar.gz)" >> $GITHUB_ENV
103104
echo "PRE_BUILT_SETUPTOOLS_WHEEL=$(ls dist/*.whl)" >> $GITHUB_ENV
104105
rm -rf setuptools.egg-info # Avoid interfering with the other tests

0 commit comments

Comments
 (0)