Bug 1006242 - numpy.distutils.system_info.get_info broken in i686
numpy.distutils.system_info.get_info broken in i686
Product: Fedora
Classification: Fedora
Component: numpy (Show other bugs)
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Gwyn Ciesla
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-09-10 05:55 EDT by Sergio Pascual
Modified: 2013-09-10 09:55 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-09-10 09:55:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Sergio Pascual 2013-09-10 05:55:02 EDT
There is some kind of packaging bug that affects numpy 1.8 in Rawhide.

I have installed atlas-devel in a VM with F19. If I compile numpy-1.8.0b2.tar.gz
the following code runs in virtualenv as expected:

>>> from numpy.distutils.system_info import get_info
>>> get_info('atlas')
{'libraries': ['lapack', 'f77blas', 'cblas', 'atlas'], 'library_dirs': ['/usr/lib/atlas'], 'define_macros': [('ATLAS_INFO', '"\\"3.8.4\\""')], 'language': 'f77', 'include_dirs': ['/usr/include']}
>>> import numpy
>>> numpy
<module 'numpy' from '/home/spr/devel/n18env/lib/python2.7/site-packages/numpy/__init__.pyc'>
>>> numpy.__version__

But if I compile the 1.8.0b2 RPM from Rawhide I get the following:

>>> from numpy.distutils.system_info import get_info
>>> get_info('atlas')
/usr/lib/python2.7/site-packages/numpy/distutils/system_info.py:574: UserWarning: Specified path /usr/lib64 is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
>>> import numpy
>>> numpy
<module 'numpy' from '/usr/lib/python2.7/site-packages/numpy/__init__.pyc'>
>>> numpy.__version__
Comment 1 Sergio Pascual 2013-09-10 06:04:28 EDT
Uhmm, the problem seems to be /usr/lib/python2.7/site-packages/numpy/distutils/site.cfg

Which contains
# Defaults
# ========
# The settings given here will apply to all other sections if not overridden.
# This is a good place to add general library and include directories like
# /usr/local/{lib,include}
library_dirs = /usr/lib64
include_dirs = /usr/include

This file is not in the numpy-1.7.1 RPM
Comment 2 Gwyn Ciesla 2013-09-10 08:58:38 EDT
Working on a probable fix.  If it works like I think it will I'll commit and build for rawhide.
Comment 3 Gwyn Ciesla 2013-09-10 09:55:29 EDT
Confirmed fixed, built in rawhide.

Note You need to log in before you can comment on or make changes to this bug.