<s> import os <EOL> from os . path import join <EOL> import numpy <EOL> from sklearn . _build_utils import get_blas_info <EOL> def configuration ( parent_package = '<STR_LIT>' , top_path = None ) : <EOL> from numpy . distutils . misc_util import Configuration <EOL> config = Configuration ( '<STR_LIT>' , parent_package , top_path ) <EOL> cblas_libs , blas_info = get_blas_info ( ) <EOL> if os . name == '<STR_LIT>' : <EOL> cblas_libs . append ( '<STR_LIT:m>' ) <EOL> config . add_extension ( '<STR_LIT>' , sources = [ '<STR_LIT>' ] , <EOL> libraries = cblas_libs , <EOL> include_dirs = [ join ( '<STR_LIT:..>' , '<STR_LIT:src>' , '<STR_LIT>' ) , <EOL> numpy . get_include ( ) , <EOL> blas_info . pop ( '<STR_LIT>' , [ ] ) ] , <EOL> extra_compile_args = blas_info . pop ( '<STR_LIT>' , <EOL> [ ] ) , ** blas_info ) <EOL> config . add_extension ( '<STR_LIT>' , <EOL> sources = [ '<STR_LIT>' ] , <EOL> include_dirs = [ join ( '<STR_LIT:..>' , '<STR_LIT:src>' , '<STR_LIT>' ) , <EOL> numpy . get_include ( ) , <EOL> blas_info . pop ( '<STR_LIT>' , [ ] ) ] , <EOL> libraries = cblas_libs , <EOL> extra_compile_args = blas_info . pop ( '<STR_LIT>' , <EOL> [ ] ) , <EOL> ** blas_info ) <EOL> config . add_extension ( '<STR_LIT>' , <EOL> sources = [ '<STR_LIT>' ] , <EOL> include_dirs = numpy . get_include ( ) ) <EOL> config . add_subpackage ( '<STR_LIT>' ) <EOL> return config <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from numpy . distutils . core import setup <EOL> setup ( ** configuration ( top_path = '<STR_LIT>' ) . todict ( ) ) </s>
