Skip to content

numpy.distutils.system_info.get_info fails on PyPy3  #11968

@rth

Description

@rth

Calling numpy.distutils.system_info.get_info on PyPy3-6.0 produces an error

Reproducing code example:

from numpy.distutils.system_info import get_info

get_info('blas_opt', 0)

Error message:

pypy-env/site-packages/numpy/distutils/system_info.py:432: in get_info
    return cl().get_info(notfound_action)
pypy-env/site-packages/numpy/distutils/system_info.py:624: in get_info
    self.calc_info()
pypy-env/site-packages/numpy/distutils/system_info.py:1656: in calc_info
    atlas_info = get_info('atlas_blas')
pypy-env/site-packages/numpy/distutils/system_info.py:432: in get_info
    return cl().get_info(notfound_action)
pypy-env/site-packages/numpy/distutils/system_info.py:624: in get_info
    self.calc_info()
pypy-env/site-packages/numpy/distutils/system_info.py:1223: in calc_info
    atlas_version, atlas_extra_info = get_atlas_version(**atlas)
pypy-env/site-packages/numpy/distutils/system_info.py:1456: in get_atlas_version
    c = cmd_config(Distribution())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <numpy.distutils.command.config.config object at 0x00000000135778d8>
dist = <distutils.dist.Distribution object at 0x0000000013577910>

    def __init__(self, dist):
        """Create and initialize a new Command object.  Most importantly,
            invokes the 'initialize_options()' method, which is the real
            initializer and depends on the actual command being
            instantiated.
            """
        # late import because of mutual dependence between these classes
        from distutils.dist import Distribution
    
        if not isinstance(dist, Distribution):
>           raise TypeError("dist must be a Distribution instance")
E           TypeError: dist must be a Distribution instance

Numpy/Python version information:

>>>> import sys, numpy; print(numpy.__version__, sys.version)
1.14.3 3.5.3 (fdd60ed87e941677e8ea11acf9f1819466521bf2, Apr 26 2018, 22:25:07)
[PyPy 6.0.0 with GCC 6.4.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions