__config__.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This file is generated by numpy's setup.py
  2. # It contains system_info results at the time of building this package.
  3. __all__ = ["get_info","show"]
  4. import os
  5. import sys
  6. extra_dll_dir = os.path.join(os.path.dirname(__file__), '.libs')
  7. if sys.platform == 'win32' and os.path.isdir(extra_dll_dir):
  8. if sys.version_info >= (3, 8):
  9. os.add_dll_directory(extra_dll_dir)
  10. else:
  11. os.environ.setdefault('PATH', '')
  12. os.environ['PATH'] += os.pathsep + extra_dll_dir
  13. blas_mkl_info={}
  14. blis_info={}
  15. openblas_info={'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/local/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  16. blas_opt_info={'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/local/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  17. lapack_mkl_info={}
  18. openblas_lapack_info={'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/local/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  19. lapack_opt_info={'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/local/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
  20. def get_info(name):
  21. g = globals()
  22. return g.get(name, g.get(name + "_info", {}))
  23. def show():
  24. for name,info_dict in globals().items():
  25. if name[0] == "_" or type(info_dict) is not type({}): continue
  26. print(name + ":")
  27. if not info_dict:
  28. print(" NOT AVAILABLE")
  29. for k,v in info_dict.items():
  30. v = str(v)
  31. if k == "sources" and len(v) > 200:
  32. v = v[:60] + " ...\n... " + v[-60:]
  33. print(" %s = %s" % (k,v))