Skip to content

Commit 55ce52f

Browse files
committed
BUG: Add --no-clean flag to Windows Python package generation step
In CI, this is unnecessary now because every Python package version is generated in a clean virtual machine instance. On some packages that use CMake FetchContent, the cleanup step can fail with: Adding 'itk_elastix-0.6.0.dist-info/RECORD' removing _skbuild\win-amd64-3.5\setuptools\bdist.win-amd64\wheel C:\P\IPP\venv-35-x64\lib\site-packages\wheel\pep425tags.py:82: RuntimeWarning: Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect warn=(impl == 'cp')): C:\P\IPP\venv-35-x64\lib\site-packages\wheel\pep425tags.py:87: RuntimeWarning: Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect sys.version_info < (3, 8))) \ running clean removing '_skbuild\win-amd64-3.5\cmake-install' removing '_skbuild\win-amd64-3.5\cmake-build' error: [WinError 5] Access is denied: '_skbuild\\win-amd64-3.5\\cmake-build\\_deps\\elx-src\\.git\\objects\\pack\\pack-fe0f18355ee7166ea63b5deefec6fde96d8691fc.idx' SCRIPT_DIR: C:\P\IPP\scripts ROOT_DIR: D:\a\im
1 parent c533b8b commit 55ce52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

{{cookiecutter.project_name}}/.github/workflows/build-test-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ jobs:
228228
set PATH="C:\P\grep;%PATH%"
229229
set CC=cl.exe
230230
set CXX=cl.exe
231-
C:\Python3${{ "{{" }} matrix.python-version-minor {{ "}}" }}-x64\python.exe C:\P\IPP\scripts\windows_build_module_wheels.py --py-envs "3${{ "{{" }} matrix.python-version-minor {{ "}}" }}-x64"
231+
C:\Python3${{ "{{" }} matrix.python-version-minor {{ "}}" }}-x64\python.exe C:\P\IPP\scripts\windows_build_module_wheels.py --py-envs "3${{ "{{" }} matrix.python-version-minor {{ "}}" }}-x64" --no-cleanup
232232
233233
- name: Publish Python package as GitHub Artifact
234234
uses: actions/upload-artifact@v1

0 commit comments

Comments
 (0)