Skip to content

Commit 616074c

Browse files
committed
centos7: remove unnecessary python file
This will remove following files * /root/rpmbuild/BUILDROOT/fluent-package-5.2.0-1.el7.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/ffi-1.17.0/ext/ffi_c/libffi/generate-darwin-source-and-headers.py * /root/rpmbuild/BUILDROOT/fluent-package-5.2.0-1.el7.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/ffi-1.17.0/ext/ffi_c/libffi/testsuite/emscripten/test_libffi.py * /root/rpmbuild/BUILDROOT/fluent-package-5.2.0-1.el7.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/ffi-1.17.0/ext/ffi_c/libffi/testsuite/emscripten/conftest.py Signed-off-by: Shizuo Fujita <[email protected]>
1 parent 5acd1c3 commit 616074c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fluent-package/Rakefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,10 @@ class BuildTask
11471147
rm_f(static_library)
11481148
end
11491149
end
1150+
Dir.glob("#{fluent_package_staging_dir}/**/libffi/**/*.py").each do |python_file|
1151+
# Remove unnecessary python file to avoid error in brp-python-bytecompile on CentOS 7
1152+
remove_files(python_file)
1153+
end
11501154
Dir.glob("#{fluent_package_staging_dir}/**/.git").each do |git_dir|
11511155
remove_files(git_dir, true)
11521156
end

0 commit comments

Comments
 (0)