Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 407031 | Differences between
and this patch

Collapse All | Expand All

(-)numpy/ctypeslib.py (-1 / +3 lines)
Lines 97-103 Link Here
97
            # Try to load library with platform-specific name, otherwise
97
            # Try to load library with platform-specific name, otherwise
98
            # default to libname.[so|pyd].  Sometimes, these files are built
98
            # default to libname.[so|pyd].  Sometimes, these files are built
99
            # erroneously on non-linux platforms.
99
            # erroneously on non-linux platforms.
100
            libname_ext = ['%s.so' % libname, '%s.pyd' % libname]
100
            from numpy.distutils.misc_util import get_shared_lib_extension
101
            so_ext = get_shared_lib_extension()
102
            libname_ext = [libname + so_ext]
101
            if sys.platform == 'win32':
103
            if sys.platform == 'win32':
102
                libname_ext.insert(0, '%s.dll' % libname)
104
                libname_ext.insert(0, '%s.dll' % libname)
103
            elif sys.platform == 'darwin':
105
            elif sys.platform == 'darwin':

Return to bug 407031