[Numpy-discussion] strange paths on install and some warnings

Arnd Baecker arnd.baecker at web.de
Fri Mar 17 09:40:03 EST 2006


On Fri, 17 Mar 2006, Arnd Baecker wrote:

> Hi,
>
> for a current svn checkout of numpy and installing with
>   python setup.py build
>   python setup.py install --prefix=/tmp/NUMPY
> this results in an install under:
>   $HOME/.PythonLibrary/Python2.3/ ...
> (("""copying build/lib.linux-i686-2.3/numpy/_import_tools.py ->
> /home/abaecker/.PythonLibrary/Python2.3/site-packages/numpy"""))
>
> Only f2py behaves and gets installed in  /tmp/NUMPY/bin.
>
> First I thought that it has something to do with a setuptools
> test I did some time ago, but moving ~/.PythonLibrary
> to a different place before installing numpy did not help.
> (it was also not on the PYTHONPATH before, so it should not
> have made a difference anyway).

[...]

Alright, I found the reason for this, it
is related to Easy Install Stuff (still mea culpa).
At some point I must have followed
http://peak.telecommunity.com/DevCenter/EasyInstall#traditional-pythonpath-based-installation
which lead to a file
.pydistutils.cfg in my homedirectory with contents:

[install]
install_lib = ~/.PythonLibrary/Python$py_version_short/site-packages
prefix=~/.PythonLibrary/

#[easy_install]
#site-dirs=/usr/local/lib/pythonX.Y/site-packages

So it seems that this wins over a ``--prefix=<some_nice_path>``.
And this is ok, because:
"""
[...] you can use Distutils configuration files to record
personal or site preferences for any Distutils options. That is, any
option to any command can be stored in one of two or three (depending on
your platform) configuration files, which will be consulted before the
command-line is parsed. This means that configuration files will override
default values, and the command-line will in turn override configuration
files.
"""
http://docs.python.org/inst/config-syntax.html

Obviously, setting up a ~/.pydistutils.cfg is a good way
to cause trouble at some later time because it is easily forgotten.

The errors below persist...

Best, Arnd


> In addition to the above I get a couple of warnings/errors (see below).
> I am not sure about their relevance (I don't remember to have seen
> them before).
>
> Best, Arnd
>
>
> Warning: not existing path in numpy/distutils: site.cfg
> No module named __svn_version__
> F2PY Version 2_2255
> blas_opt_info:
> blas_mkl_info:
> /tmp/NUMPY/numpy/numpy/distutils/system_info.py:531: UserWarning: Library
> error: libs=['mkl', 'vml', 'guide'] found_libs=[]
>   warnings.warn("Library error: libs=%s found_libs=%s" % \
>   NOT AVAILABLE
>
> atlas_blas_threads_info:
> Setting PTATLAS=ATLAS
> /tmp/NUMPY/numpy/numpy/distutils/system_info.py:531: UserWarning: Library
> error: libs=['ptf77blas', 'ptcblas', 'atlas'] found_libs=[]
>   warnings.warn("Library error: libs=%s found_libs=%s" % \
> /tmp/NUMPY/numpy/numpy/distutils/system_info.py:531: UserWarning: Library
> error: libs=['ptf77blas', 'ptcblas', 'atlas']
> found_libs=['/usr/lib/sse2/libatlas.so']
>   warnings.warn("Library error: libs=%s found_libs=%s" % \
> /tmp/NUMPY/numpy/numpy/distutils/system_info.py:531: UserWarning: Library
> error: libs=['ptf77blas', 'ptcblas', 'atlas']
> found_libs=['/usr/lib/sse2/libatlas.a']
>   warnings.warn("Library error: libs=%s found_libs=%s" % \
> /tmp/NUMPY/numpy/numpy/distutils/system_info.py:531: UserWarning: Library
> error: libs=['ptf77blas', 'ptcblas', 'atlas']
> found_libs=['/usr/lib/libatlas.so']
>   warnings.warn("Library error: libs=%s found_libs=%s" % \
>   NOT AVAILABLE
>
> atlas_blas_info:
> /tmp/NUMPY/numpy/numpy/distutils/system_info.py:531: UserWarning: Library
> error: libs=['f77blas', 'cblas', 'atlas'] found_libs=[]
>   warnings.warn("Library error: libs=%s found_libs=%s" % \
>   FOUND:
>     libraries = ['f77blas', 'cblas', 'atlas']
>     library_dirs = ['/usr/lib/sse2']
>     language = c
>     include_dirs = ['/usr/include']
>
> /tmp/NUMPY/numpy/numpy/distutils/system_info.py:1075: FutureWarning:
> hex()/oct() of negative int will return a signed string in Python 2.4 and
> up
>   magic = hex(hash(repr(config)))




More information about the NumPy-Discussion mailing list