forked from scikit-learn/scikit-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: setup.py sklearn/__init__.py
- Loading branch information
Showing
6 changed files
with
106 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
""" | ||
Utilities useful during the build. | ||
""" | ||
# author: Andy Mueller, Gael Varoquaux | ||
# license: BSD | ||
|
||
from numpy.distutils.system_info import get_info | ||
|
||
def get_blas_info(): | ||
|
||
def atlas_not_found(blas_info_): | ||
def_macros = blas_info.get('define_macros', []) | ||
for x in def_macros: | ||
if x[0] == "NO_ATLAS_INFO": | ||
# if x[1] != 1 we should have lapack | ||
# how do we do that now? | ||
return True | ||
if x[0] == "ATLAS_INFO": | ||
if "None" in x[1]: | ||
# this one turned up on FreeBSD | ||
return True | ||
return False | ||
|
||
blas_info = get_info('blas_opt', 0) | ||
if (not blas_info) or atlas_not_found(blas_info): | ||
cblas_libs = ['cblas'] | ||
blas_info.pop('libraries', None) | ||
else: | ||
cblas_libs = blas_info.pop('libraries', []) | ||
|
||
return cblas_libs, blas_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters