Skip to content

Commit

Permalink
DEBUG: See if misc_util is involved
Browse files Browse the repository at this point in the history
As title.
  • Loading branch information
stuartarchibald committed Dec 15, 2022
1 parent ebc9299 commit e221307
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions numba/pycc/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from distutils.command.build_ext import build_ext
from distutils.sysconfig import customize_compiler
from distutils import log

import numpy.distutils.misc_util as np_misc # DEBUG
import numpy as np

import functools
Expand Down Expand Up @@ -58,10 +58,10 @@ 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=Path(ntf.name).anchor)
compiler.compile([ntf.name], output_dir=Path(ntf.name).anchor)
except Exception: # likely CompileError or file system issue
return False
return False
return True

# boolean on whether the externally provided compiler is present and
# functioning correctly
Expand All @@ -88,6 +88,8 @@ def __init__(self):
self._py_lib_dirs = self._build_ext.library_dirs
self._py_include_dirs = self._build_ext.include_dirs

np_misc.get_info('npymath') # DEBUG

np_compile_args = {'include_dirs': [np.get_include(),],}
if sys.platform == 'win32':
np_compile_args['libraries'] = []
Expand Down

0 comments on commit e221307

Please sign in to comment.