File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 3636%define install_plugins /tmp/@PACKAGE_DIR@/.install_plugins
3737%define pid_for_auto_restart /tmp/@PACKAGE_DIR@/.pid_for_auto_restart
3838
39- # Disable to use old python on CentOS 7 because it causes error in brp-python-bytecompile.
40- # We can use __brp_python_bytecompile to disable it with rpm 4.14.2+ environment,
41- # but CentOS 7 has rpm 4.11.3 which does not support it.
42- %if %{_centos_ver} == 7
43- %global __python %{nil}
44- %endif
45-
46- # Omit the brp-python-bytecompile automagic because post hook for ffi fails on AmazonLinux 2.
47- %if %{_amazon_ver} == 2
48- %global __brp_python_bytecompile %{nil}
49- %endif
39+ # Stop interrupting by bytecopile errors. The errors are causes on Amazon Linux 2 and CentOS 7.
40+ %global _python_bytecompile_errors_terminate_build 0
5041
5142%global __provides_exclude_from ^/opt/%{name}/.*\\.so.*
5243%global __requires_exclude libjemalloc.*|libruby.*|/opt/%{name}/.*
You can’t perform that action at this time.
0 commit comments