Skip to content

Commit b16a693

Browse files
fixup! Fetch binary before building distribution
1 parent 86bf408 commit b16a693

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/download_minicore.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ def extract_tar_gz(tar_path: Path, extract_to: Path) -> None:
166166
)
167167
continue
168168

169-
tar.extractall(path=extract_to, filter="data")
169+
# The 'filter' parameter was added in Python 3.12
170+
if sys.version_info >= (3, 12):
171+
tar.extractall(path=extract_to, filter="data")
172+
else:
173+
tar.extractall(path=extract_to)
170174

171175

172176
def main() -> int:

0 commit comments

Comments
 (0)