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

Collapse All | Expand All

(-)numpy/distutils/cpuinfo.py (-2 / +5 lines)
Lines 95-101 Link Here
95
        if ok:
95
        if ok:
96
            info[0]['uname_m'] = output.strip()
96
            info[0]['uname_m'] = output.strip()
97
        try:
97
        try:
98
            fo = open('/proc/cpuinfo')
98
#            fo = open('/proc/cpuinfo')
99
             fo = open('/tmp/cpuinfo')
99
        except EnvironmentError, e:
100
        except EnvironmentError, e:
100
            warnings.warn(str(e), UserWarning)
101
            warnings.warn(str(e), UserWarning)
101
        else:
102
        else:
Lines 222-228 Link Here
222
        return self.is_PentiumIV() and self.has_sse3()
223
        return self.is_PentiumIV() and self.has_sse3()
223
224
224
    def _is_Nocona(self):
225
    def _is_Nocona(self):
225
        return self.is_64bit() and self.is_PentiumIV()
226
        return self.is_64bit() and ( self.is_PentiumIV() \
227
            or re.match(r'.*?Genuine Intel\(R\) CPU.*?\b',
228
                self.info[0]['model name']) is not None )
226
229
227
    def _is_Core2(self):
230
    def _is_Core2(self):
228
        return self.is_64bit() and self.is_Intel() and \
231
        return self.is_64bit() and self.is_Intel() and \

Return to bug 183236