__config__.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. os.environ.setdefault('PATH', '')
  9. os.environ['PATH'] += os.pathsep + extra_dll_dir
  10. lapack_opt_info={'libraries': ['openblas'], 'library_dirs': ['C:\\projects\\numpy-wheels\\numpy\\build\\openblas'], 'language': 'f77', 'define_macros': [('HAVE_CBLAS', None)]}
  11. blas_opt_info={'libraries': ['openblas'], 'library_dirs': ['C:\\projects\\numpy-wheels\\numpy\\build\\openblas'], 'language': 'f77', 'define_macros': [('HAVE_CBLAS', None)]}
  12. blis_info={}
  13. openblas_info={'libraries': ['openblas'], 'library_dirs': ['C:\\projects\\numpy-wheels\\numpy\\build\\openblas'], 'language': 'f77', 'define_macros': [('HAVE_CBLAS', None)]}
  14. openblas_lapack_info={'libraries': ['openblas'], 'library_dirs': ['C:\\projects\\numpy-wheels\\numpy\\build\\openblas'], 'language': 'f77', 'define_macros': [('HAVE_CBLAS', None)]}
  15. lapack_mkl_info={}
  16. blas_mkl_info={}
  17. def get_info(name):
  18. g = globals()
  19. return g.get(name, g.get(name + "_info", {}))
  20. def show():
  21. for name,info_dict in globals().items():
  22. if name[0] == "_" or type(info_dict) is not type({}): continue
  23. print(name + ":")
  24. if not info_dict:
  25. print(" NOT AVAILABLE")
  26. for k,v in info_dict.items():
  27. v = str(v)
  28. if k == "sources" and len(v) > 200:
  29. v = v[:60] + " ...\n... " + v[-60:]
  30. print(" %s = %s" % (k,v))