python 创建 rpm 时 compiling test module failed

centos7 中基于 spec 打包 python 时遇到 compiling 源码/site-package test文件失败,导致打包错误

 

解决:

spec 中添加:

    %define _python_bytecompile_errors_terminate_build 0

posted @ 2019-05-05 14:33  庚午大侠  阅读(232)  评论(0编辑  收藏  举报