Skip to content

Commit 03d1aee

Browse files
committed
fix win tmp
1 parent f66f7e3 commit 03d1aee

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/actions/build_pandas/action.yml

+10
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,23 @@ runs:
1414
python --version
1515
shell: bash -el {0}
1616

17+
- name: Fix Windows temporary directory
18+
# On Windows, for some reason the default temporary directory used by distutils
19+
# may become read-only at some point. Work around by having a private tempdir.
20+
id: mktemp
21+
run: echo "::set-output name=tmpdir::$(cygpath -w $(mktemp -d))"
22+
shell: bash
23+
if: ${{ runner.os == 'Windows' }}
24+
1725
- name: Build Pandas
1826
run: |
1927
which python
2028
which pip
2129
time python setup.py build_ext -v -j 3
2230
pip install -v -e . --no-build-isolation --no-use-pep517 --no-index
2331
shell: bash -el {0}
32+
env:
33+
TMP: "${{ steps.mktemp.outputs.tmpdir }}"
2434

2535
- name: Build Version
2636
run: pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd

0 commit comments

Comments
 (0)