Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions numba/pycc/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
import os
import subprocess
import sys
from tempfile import NamedTemporaryFile, mkdtemp, gettempdir
from tempfile import mkdtemp
from contextlib import contextmanager
from pathlib import Path

_configs = {
# DLL suffix, Python C extension suffix
Expand Down Expand Up @@ -57,7 +58,7 @@ def _check_external_compiler():
ntf.close()
# *output_dir* is set to avoid the compiler putting temp files
# in the current directory.
compiler.compile([ntf.name], output_dir=gettempdir())
Comment thread
ChiCheng45 marked this conversation as resolved.
compiler.compile([ntf.name], output_dir=Path(ntf.name).anchor)
except Exception: # likely CompileError or file system issue
return False
return True
Expand Down