Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit e44a675

Browse files
committed
Fix permissions prior to moving common header files.
1 parent 1bc72aa commit e44a675

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,15 @@ function build_one_abi() {
107107
# Extract header files
108108
docker run -v "${PWD}"/build/"${PYTHON_VERSION}"/app/include/:/mnt/ --rm --entrypoint rsync "$TAG_NAME" -a /opt/python-build/built/python/include/ /mnt/
109109

110+
# Docker creates files as root; reown as the local user
111+
fix_permissions
112+
110113
# Move pyconfig.h to a platform-specific name.
111114
mv "${PWD}"/build/"${PYTHON_VERSION}"/app/include/python"${PYTHON_SOVERSION}"/pyconfig.h "${PWD}"/build/"${PYTHON_VERSION}"/app/include/python"${PYTHON_SOVERSION}"/pyconfig-${TARGET_ABI_SHORTNAME}.h
112115
# Inject a platform-agnostic pyconfig.h wrapper.
113116
cp "${PWD}/patches/all/pyconfig.h" "${PWD}"/build/"${PYTHON_VERSION}"/app/include/python"${PYTHON_SOVERSION}"/
114117
# Remove temporary local tag.
115118
docker rmi "$TAG_NAME" > /dev/null
116-
fix_permissions
117119
}
118120

119121
# Download a file into downloads/$name/$filename and verify its sha256sum.

0 commit comments

Comments
 (0)