MCPcopy Create free account
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/distutils/ccompiler_opt.py:571–588  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

569 return {}
570
571 def __init__(self):
572 if self.conf_tmp_path is None:
573 import shutil
574 import tempfile
575 tmp = tempfile.mkdtemp()
576 def rm_temp():
577 try:
578 shutil.rmtree(tmp)
579 except OSError:
580 pass
581 atexit.register(rm_temp)
582 self.conf_tmp_path = tmp
583
584 if self.conf_cache_factors is None:
585 self.conf_cache_factors = [
586 os.path.getmtime(__file__),
587 self.conf_nocache
588 ]
589
590class _Distutils:
591 """A helper class that provides a collection of fundamental methods

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected