Skip to content

Attempt to fix Anaconda compilation bug #326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions nipy/labs/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,25 @@ def configuration(parent_package='',top_path=None):
log.warn('Lapack not found')
log.warn('Building Lapack lite distribution')
sources.append(os.path.join(LIBS,'lapack_lite','*.c'))
library_dirs = []
libraries = []
config.add_library('cstat', sources=sources)

# Best-case scenario: lapack found
# If lapack found and lapack linking required, then use numpy's
# mechanism to do that
else:
log.warn('Linking with system Lapack')
library_dirs = lapack_info['library_dirs']
libraries = lapack_info['libraries']
if 'include_dirs' in lapack_info:
config.add_include_dirs(lapack_info['include_dirs'])

# Information message
print('LAPACK build options:')
print('library_dirs: %s ' % library_dirs)
print('libraries: %s ' % libraries)
print('lapack_info: %s ' % lapack_info)

config.add_library('cstat',
sources=sources,
library_dirs=library_dirs,
libraries=libraries,
extra_info=lapack_info)
log.warn('Trying to link system Lapack... good luck!')
log.warn(' library_dirs: %s ' % library_dirs)
log.warn(' libraries: %s ' % libraries)
log.warn(' lapack_info: %s ' % lapack_info)
config.add_library('cstat',
sources=sources,
library_dirs=library_dirs,
libraries=libraries,
extra_info=lapack_info)

# Subpackages
config.add_subpackage('bindings')
Expand Down