deprecate core.tmp-dir and use tempfile.mktemp instead