File tree Expand file tree Collapse file tree 4 files changed +29
-11
lines changed Expand file tree Collapse file tree 4 files changed +29
-11
lines changed Original file line number Diff line number Diff line change @@ -92,17 +92,17 @@ RUN localedef -i en_US -f UTF-8 en_US.UTF-8
92
92
# specify sphinx version as 1.5.6 and remove -U option for [pip install -U
93
93
# sphinx-rtd-theme] since -U option will cause sphinx being updated to newest
94
94
# version(1.7.1 for now), which causes building documentation failed.
95
- RUN pip3 --no-cache-dir install -U wheel py-cpuinfo==4 .0.0 && \
95
+ RUN pip3 --no-cache-dir install -U wheel py-cpuinfo==5 .0.0 && \
96
96
pip3 --no-cache-dir install -U docopt PyYAML sphinx==1.5.6 && \
97
97
pip3 --no-cache-dir install sphinx-rtd-theme==0.1.9 recommonmark && \
98
- pip3.6 --no-cache-dir install -U wheel py-cpuinfo==4 .0.0 && \
98
+ pip3.6 --no-cache-dir install -U wheel py-cpuinfo==5 .0.0 && \
99
99
pip3.6 --no-cache-dir install -U docopt PyYAML sphinx==1.5.6 && \
100
100
pip3.6 --no-cache-dir install sphinx-rtd-theme==0.1.9 recommonmark && \
101
- pip3.7 --no-cache-dir install -U wheel py-cpuinfo==4 .0.0 && \
101
+ pip3.7 --no-cache-dir install -U wheel py-cpuinfo==5 .0.0 && \
102
102
pip3.7 --no-cache-dir install -U docopt PyYAML sphinx==1.5.6 && \
103
103
pip3.7 --no-cache-dir install sphinx-rtd-theme==0.1.9 recommonmark && \
104
104
easy_install -U pip && \
105
- pip --no-cache-dir install -U pip setuptools wheel py-cpuinfo==4 .0.0 && \
105
+ pip --no-cache-dir install -U pip setuptools wheel py-cpuinfo==5 .0.0 && \
106
106
pip --no-cache-dir install -U docopt PyYAML sphinx==1.5.6 && \
107
107
pip --no-cache-dir install sphinx-rtd-theme==0.1.9 recommonmark
108
108
Original file line number Diff line number Diff line change @@ -92,17 +92,17 @@ RUN localedef -i en_US -f UTF-8 en_US.UTF-8
92
92
# specify sphinx version as 1.5.6 and remove -U option for [pip install -U
93
93
# sphinx-rtd-theme] since -U option will cause sphinx being updated to newest
94
94
# version(1.7.1 for now), which causes building documentation failed.
95
- RUN pip3 --no-cache-dir install -U wheel py-cpuinfo==4 .0.0 && \
95
+ RUN pip3 --no-cache-dir install -U wheel py-cpuinfo==5 .0.0 && \
96
96
pip3 --no-cache-dir install -U docopt PyYAML sphinx==1.5.6 && \
97
97
pip3 --no-cache-dir install sphinx-rtd-theme==0.1.9 recommonmark && \
98
- pip3.6 --no-cache-dir install -U wheel py-cpuinfo==4 .0.0 && \
98
+ pip3.6 --no-cache-dir install -U wheel py-cpuinfo==5 .0.0 && \
99
99
pip3.6 --no-cache-dir install -U docopt PyYAML sphinx==1.5.6 && \
100
100
pip3.6 --no-cache-dir install sphinx-rtd-theme==0.1.9 recommonmark && \
101
- pip3.7 --no-cache-dir install -U wheel py-cpuinfo==4 .0.0 && \
101
+ pip3.7 --no-cache-dir install -U wheel py-cpuinfo==5 .0.0 && \
102
102
pip3.7 --no-cache-dir install -U docopt PyYAML sphinx==1.5.6 && \
103
103
pip3.7 --no-cache-dir install sphinx-rtd-theme==0.1.9 recommonmark && \
104
104
easy_install -U pip && \
105
- pip --no-cache-dir install -U pip setuptools wheel py-cpuinfo==4 .0.0 && \
105
+ pip --no-cache-dir install -U pip setuptools wheel py-cpuinfo==5 .0.0 && \
106
106
pip --no-cache-dir install -U docopt PyYAML sphinx==1.5.6 && \
107
107
pip --no-cache-dir install sphinx-rtd-theme==0.1.9 recommonmark
108
108
Original file line number Diff line number Diff line change 58
58
raise e
59
59
60
60
load_noavx = False
61
- if 'avx' in get_cpu_info ()['flags' ]:
61
+
62
+ has_avx = False
63
+ if sys .platform == 'darwin' :
64
+ try :
65
+ has_avx = os .popen ('sysctl machdep.cpu.features | grep -i avx' ).read (
66
+ ) != ''
67
+ except Exception as e :
68
+ sys .stderr .write (
69
+ 'Can not get the AVX flag from machdep.cpu.features.\n ' )
70
+ if not has_avx :
71
+ try :
72
+ has_avx = os .popen (
73
+ 'sysctl machdep.cpu.leaf7_features | grep -i avx' ).read () != ''
74
+ except Exception as e :
75
+ sys .stderr .write (
76
+ 'Can not get the AVX flag from machdep.cpu.leaf7_features.\n ' )
77
+ else :
78
+ has_avx = 'avx' in get_cpu_info ()['flags' ]
79
+
80
+ if has_avx :
62
81
try :
63
82
from .core_avx import *
64
83
from .core_avx import __doc__ , __file__ , __name__ , __package__
Original file line number Diff line number Diff line change @@ -16,5 +16,4 @@ funcsigs
16
16
pyyaml
17
17
decorator
18
18
prettytable
19
- py-cpuinfo == 5.0.0 ; platform_system == "Windows"
20
- py-cpuinfo == 4.0.0 ; platform_system != "Windows"
19
+ py-cpuinfo == 5.0.0
You can’t perform that action at this time.
0 commit comments