[SciPy-User] Curious about the contents of __config__.py

josef.pktd@gmai... josef.pktd@gmai...
Mon Jul 1 20:08:26 CDT 2013

On Mon, Jul 1, 2013 at 8:46 PM, klo uo <klonuo@gmail.com> wrote:
> Hi,
> I downloaded latest installers for numpy and scipy from sourceforge,
> as I wasn't feeling ambitious to build from source.
>   show_config()
> lists library dirs as:
>   numpy: 'library_dirs': ['C:\\local\\lib\\atlas\\sse3']
>   scipy: 'library_dirs': ['C:\\local\\lib\\yop\\sse3']
> macros:
>   numpy: 'define_macros': [('NO_ATLAS_INFO', -1)]
>   scipy: 'define_macros': [('ATLAS_INFO', '"\\"?.?.?\\""')]
> As I had already compiled ATLAS libraries, I edited all __config__.py
> files and set this:
>   'library_dirs': ['C:\\lib\\ATLAS3.6.0_P4SSE2']
>   'define_macros': [('ATLAS_INFO', '"\\"3.6.0\\""')]
> I'm curious what is this good for? Is it only about packaging? Does
> other python packages depend on these variables set in __config__.py
> files, and is it fine that I did edit the files to reflect my system?

AFAIK, from when I was still building scipy

These are the files scipy was build against by the build script for
the scipy binaries. Since the libraries are statically linked, it
doesn't matter what other ATLAS you have on your computer, they are
not the ones used by this scipy installation, and the changes to the
config info won't reflect the "real" libraries.

for example, your scipy uses the sse3 libraries, while your ATLAS
looks like sse2


> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user

More information about the SciPy-User mailing list